Created
September 24, 2010 00:21
-
-
Save schof/594656 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "spec_helper" | |
describe Spree::MailSettings do | |
let(:mail_method) { MailMethod.create(:environment => "test") } | |
before { mail_method.set(:perform_delivery => false) } | |
after { mail_method.set(:perform_delivery => true) } | |
context "init" do | |
it "should override the application defaults" do | |
Spree::MailSettings.init | |
ActionMailer::Base.perform_deliveries.should be_true | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment