Sha256: 145c302cd4ac99c76d66c915967703c88560d1def687ca6a40c6bfab51e4cac2
Contents?: true
Size: 589 Bytes
Versions: 4
Compression:
Stored size: 589 Bytes
Contents
require 'spec_helper' describe Runner do let (:kls) { mock_app_class {} } before do Rack::Handler.stub :pick => double(:run => nil) end it 'should include the default middleware on top' do kls.should_receive(:use).with(Rack::CommonLogger) kls.should_receive(:use).with(BetterErrors::Middleware) kls.run! end it 'should not include show exceptions middleware in production' do NYNY.env.stub :production? => true kls.should_receive(:use).with(Rack::CommonLogger) kls.should_not_receive(:use).with(BetterErrors::Middleware) kls.run! end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
nyny-3.2.2 | spec/runner_spec.rb |
nyny-3.2.1 | spec/runner_spec.rb |
nyny-3.2.0 | spec/runner_spec.rb |
nyny-3.1.0 | spec/runner_spec.rb |