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
")