Skip to content

Instantly share code, notes, and snippets.

@schof
Created September 24, 2010 00:21
Show Gist options
  • Save schof/594656 to your computer and use it in GitHub Desktop.
Save schof/594656 to your computer and use it in GitHub Desktop.
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