mirror of
https://github.com/discourse/discourse.git
synced 2026-07-29 15:54:48 -05:00
fix most deprecations in the specs (still some left)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user