Sha256: 2968bebd577050692ce1d20e0b2757efc70ec1b84c3f2973ba6883a8c5dee536
Contents?: true
Size: 620 Bytes
Versions: 1
Compression:
Stored size: 620 Bytes
Contents
describe "ActionMailer::Base" do before(:each) do @mailer_class = Class.new(ActionMailer::Base) { def test; body "test"; end } end it "should flush the subdomain procs cache each time a mailer is created" do ActionController::Routing::Routes.subdomain_procs.should_receive(:flush!) @mailer_class.create_test end it "should not flush the subdomain procs cache if SubdomainRoutes::Config.manual_flush is set" do SubdomainRoutes::Config.stub!(:manual_flush).and_return(true) ActionController::Routing::Routes.subdomain_procs.should_not_receive(:flush!) @mailer_class.create_test end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mholling-subdomain_routes-0.1.0 | spec/mailer_spec.rb |