From e665bfd72ae2883d5eebebd04ab2b020deb27487 Mon Sep 17 00:00:00 2001 From: riking Date: Sat, 27 Sep 2014 16:38:00 -0700 Subject: [PATCH] Fix test failure --- spec/jobs/{leader_promotions_spec.rb => tl3_promotions_spec.rb} | 2 +- spec/models/user_profile_spec.rb | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) rename spec/jobs/{leader_promotions_spec.rb => tl3_promotions_spec.rb} (98%) diff --git a/spec/jobs/leader_promotions_spec.rb b/spec/jobs/tl3_promotions_spec.rb similarity index 98% rename from spec/jobs/leader_promotions_spec.rb rename to spec/jobs/tl3_promotions_spec.rb index f9dbb2209f9..49f3b6f1b7e 100644 --- a/spec/jobs/leader_promotions_spec.rb +++ b/spec/jobs/tl3_promotions_spec.rb @@ -1,6 +1,6 @@ require 'spec_helper' -describe Jobs::LeaderPromotions do +describe Jobs::Tl3Promotions do subject(:run_job) { described_class.new.execute({}) } diff --git a/spec/models/user_profile_spec.rb b/spec/models/user_profile_spec.rb index 410355cd7ec..99c20427702 100644 --- a/spec/models/user_profile_spec.rb +++ b/spec/models/user_profile_spec.rb @@ -122,6 +122,7 @@ describe UserProfile do it 'adds nofollow to links in bio when trust level is decreased' do created_user.trust_level = TrustLevel[3] created_user.save + created_user.reload created_user.change_trust_level!(TrustLevel[2]) expect(created_user.user_profile.bio_excerpt).to match_html("I love http://discourse.org") expect(created_user.user_profile.bio_processed).to match_html("

I love http://discourse.org

")