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