Sha256: 253331be4fd75f198810b0f56f84c99a31388eb49116516aa498e0ef020e1cbf
Contents?: true
Size: 593 Bytes
Versions: 6
Compression:
Stored size: 593 Bytes
Contents
require 'spec_helper' describe 'App.run!' 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
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
nyny-3.4.3 | spec/runner_spec.rb |
nyny-3.4.2 | spec/runner_spec.rb |
nyny-3.4.1 | spec/runner_spec.rb |
nyny-3.4.0 | spec/runner_spec.rb |
nyny-3.3.1 | spec/runner_spec.rb |
nyny-3.3.0 | spec/runner_spec.rb |