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