Sha256: dd39142b94ee83542bf5ae24ab7817241c6a1289461843ef006ae4a2d56205ad

Contents?: true

Size: 509 Bytes

Versions: 3

Compression:

Stored size: 509 Bytes

Contents

require 'spec_helper'

describe Runner do
  describe '.run!' do
    before do
      handler = begin
                  Rack::Handler::Thin
                rescue LoadError
                  Rack::Handler::WEBrick
                end
      handler.stub :run
    end

    it 'should include the default middleware on top' do
      kls = mock_app_class do
      end

      kls.run!
      kls.middlewares.first.should == Rack::ShowExceptions
      kls.middlewares[1].should == Rack::CommonLogger
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
nyny-1.0.2 spec/runner_spec.rb
nyny-1.0.1 spec/runner_spec.rb
nyny-1.0.0 spec/runner_spec.rb