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
+9 -6
View File
@@ -3,13 +3,16 @@ require "spec_helper"
describe TestMailer do
describe "send_test" do
subject { TestMailer.send_test('marcheline@adventuretime.ooo') }
its(:to) { should == ['marcheline@adventuretime.ooo'] }
its(:subject) { should be_present }
its(:body) { should be_present }
its(:from) { should == [SiteSetting.notification_email] }
it "works" do
test_mailer = TestMailer.send_test('marcheline@adventuretime.ooo')
test_mailer.from.should == [SiteSetting.notification_email]
test_mailer.to.should == ['marcheline@adventuretime.ooo']
test_mailer.subject.should be_present
test_mailer.body.should be_present
end
end
end