Fix test failure
This commit is contained in:
parent
bff95a6a97
commit
e665bfd72a
|
@ -1,6 +1,6 @@
|
||||||
require 'spec_helper'
|
require 'spec_helper'
|
||||||
|
|
||||||
describe Jobs::LeaderPromotions do
|
describe Jobs::Tl3Promotions do
|
||||||
|
|
||||||
subject(:run_job) { described_class.new.execute({}) }
|
subject(:run_job) { described_class.new.execute({}) }
|
||||||
|
|
|
@ -122,6 +122,7 @@ describe UserProfile do
|
||||||
it 'adds nofollow to links in bio when trust level is decreased' do
|
it 'adds nofollow to links in bio when trust level is decreased' do
|
||||||
created_user.trust_level = TrustLevel[3]
|
created_user.trust_level = TrustLevel[3]
|
||||||
created_user.save
|
created_user.save
|
||||||
|
created_user.reload
|
||||||
created_user.change_trust_level!(TrustLevel[2])
|
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_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>")
|
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>")
|
||||||
|
|
Loading…
Reference in New Issue