Sha256: 9a8ed5a3f53e951e0cf630355915eaec68da78c62418223d87cb73ebbc558606
Contents?: true
Size: 585 Bytes
Versions: 1
Compression:
Stored size: 585 Bytes
Contents
require 'spec_helper' describe Runner do let (:kls) { mock_app_class {} } before do kls.optimal_runner.stub :run end it 'should include the default middleware on top' do kls.should_receive(:use).with(Rack::CommonLogger) kls.should_receive(:use).with(Rack::ShowExceptions) 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(Rack::ShowExceptions) kls.run! end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nyny-3.0.0 | spec/runner_spec.rb |