fix most deprecations in the specs (still some left)

This commit is contained in:
Régis Hanol
2014-09-25 17:44:48 +02:00
parent dd5872eecb
commit de76b512c1
121 changed files with 859 additions and 856 deletions
+2 -2
View File
@@ -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