Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix up intermittent spec error

  • Loading branch information...
commit 1d2307e953aed2e4708721f04e1778a35b8d805c 1 parent 2057c2f
@mikel authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  spec/mail/configuration_spec.rb
View
3  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
Please sign in to comment.
Something went wrong with that request. Please try again.