Skip to content

Commit

Permalink
removed redundant test, check the reason more explicitly in the excep…
Browse files Browse the repository at this point in the history
…tion raised
  • Loading branch information
auxesis committed Nov 24, 2009
1 parent f57eb16 commit ae98e80
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions spec/notifiers/mailer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,10 @@

describe "mailing notifier" do

# it "should set a from address" do
# mailer = Flapjack::Notifiers::Mailer.new(:from_address => "[email protected]")
# 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
Expand Down

0 comments on commit ae98e80

Please sign in to comment.