Sha256: cc79d7a22f9de6b63316e14ba6acd20dc57ea56913c02c1f12e2e111f64a4f03

Contents?: true

Size: 426 Bytes

Versions: 24

Compression:

Stored size: 426 Bytes

Contents

require 'test/spec'
require 'rack/mock'
require 'rack/contrib/not_found'

context "Rack::NotFound" do

  specify "should render the file at the given path for all requests" do
    app = Rack::Builder.new do
      use Rack::Lint
      run Rack::NotFound.new('test/404.html')
    end
    response = Rack::MockRequest.new(app).get('/')
    response.body.should.equal('Not Found')
    response.status.should.equal(404)
  end

end

Version data entries

24 entries across 24 versions & 8 rubygems

Version Path
rack-contrib-1.2.0 test/spec_rack_not_found.rb
cavalle-rack-contrib-1.0.0 test/spec_rack_not_found.rb
rack-rack-contrib-0.9.1 test/spec_rack_not_found.rb
rack-rack-contrib-0.9.2 test/spec_rack_not_found.rb
tricycle-rack-contrib-0.9.3 test/spec_rack_not_found.rb
rack-contrib-1.1.0 test/spec_rack_not_found.rb
corntrace-rack-contrib-1.0.2.3 test/spec_rack_not_found.rb
corntrace-rack-contrib-1.0.2.2 test/spec_rack_not_found.rb
corntrace-rack-contrib-1.0.2.1 test/spec_rack_not_found.rb
corntrace-rack-contrib-1.0.2 test/spec_rack_not_found.rb
rack-contrib-1.0.1 test/spec_rack_not_found.rb
rack-contrib-1.0.0 test/spec_rack_not_found.rb
devver-rack-contrib-0.9.7 test/spec_rack_not_found.rb
devver-rack-contrib-0.9.6 test/spec_rack_not_found.rb
devver-rack-contrib-0.9.5 test/spec_rack_not_found.rb
devver-rack-contrib-0.9.4 test/spec_rack_not_found.rb
devver-rack-contrib-0.9.3 test/spec_rack_not_found.rb
rack-contrib_stringbot-0.9.3 test/spec_rack_not_found.rb
tricycle-rack-contrib-0.9.7 test/spec_rack_not_found.rb
tricycle-rack-contrib-0.9.6 test/spec_rack_not_found.rb