From ae98e804800d458ddefef82ec0b6ffae37ef249f Mon Sep 17 00:00:00 2001 From: Lindsay Holmwood Date: Tue, 24 Nov 2009 02:13:40 +0100 Subject: [PATCH] removed redundant test, check the reason more explicitly in the exception raised --- spec/notifiers/mailer_spec.rb | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/spec/notifiers/mailer_spec.rb b/spec/notifiers/mailer_spec.rb index c08e6f061..012226b8d 100644 --- a/spec/notifiers/mailer_spec.rb +++ b/spec/notifiers/mailer_spec.rb @@ -3,14 +3,10 @@ describe "mailing notifier" do -# it "should set a from address" do -# mailer = Flapjack::Notifiers::Mailer.new(:from_address => "test@example.org") -# end - it "should error if no from address is provided" do lambda { - mailer = Flapjack::Notifiers::Mailer.new - }.should raise_error(ArgumentError) + mailer = Flapjack::Notifiers::Mailer.new(:log => MockLogger.new) + }.should raise_error(ArgumentError, /from address/) end it "should error if no recipient is provided" do