Permalink
Browse files

Fix up intermittent spec error

  • Loading branch information...
1 parent 2057c2f commit 1d2307e953aed2e4708721f04e1778a35b8d805c @mikel committed Nov 17, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 spec/mail/configuration_spec.rb
@@ -13,6 +13,9 @@ def initialize(values)
describe "network configurations" do
it "defaults delivery_method to smtp" do
+ # Need to clear out any prior configuration, as setting nil on the config
+ # will not clear it.
+ Mail::Configuration.instance.send(:initialize)
Mail.defaults { delivery_method nil, { :address => 'some.host' } }
Mail.delivery_method.settings[:address].should eq 'some.host'
end

0 comments on commit 1d2307e

Please sign in to comment.