mirror of
https://github.com/discourse/discourse.git
synced 2026-08-14 06:55:03 -05:00
fix most deprecations in the specs (still some left)
This commit is contained in:
@@ -89,7 +89,7 @@ describe EmailToken do
|
||||
context 'welcome message' do
|
||||
it 'sends a welcome message when the user is activated' do
|
||||
user = EmailToken.confirm(email_token.token)
|
||||
user.send_welcome_message.should be_true
|
||||
user.send_welcome_message.should == true
|
||||
end
|
||||
|
||||
context "when using the code a second time" do
|
||||
@@ -98,7 +98,7 @@ describe EmailToken do
|
||||
SiteSetting.email_token_grace_period_hours = 1
|
||||
EmailToken.confirm(email_token.token)
|
||||
user = EmailToken.confirm(email_token.token)
|
||||
user.send_welcome_message.should be_false
|
||||
user.send_welcome_message.should == false
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user