Fix test failure

This commit is contained in:
riking 2014-09-27 16:38:00 -07:00 committed by Sam
parent bff95a6a97
commit e665bfd72a
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,6 @@
require 'spec_helper'
describe Jobs::LeaderPromotions do
describe Jobs::Tl3Promotions do
subject(:run_job) { described_class.new.execute({}) }

View File

@ -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 <a href='http://discourse.org' rel='nofollow'>http://discourse.org</a>")
expect(created_user.user_profile.bio_processed).to match_html("<p>I love <a href=\"http://discourse.org\" rel=\"nofollow\">http://discourse.org</a></p>")