Sha256: ca83f09288f906b018fa25b48867b0f9362c96ab6c926cc87ff2897cf3199c78
Contents?: true
Size: 500 Bytes
Versions: 1
Compression:
Stored size: 500 Bytes
Contents
require 'spec_helper' describe ::Stickler::Middleware::NotFound do include Rack::Test::Methods def app ::Stickler::Middleware::NotFound.new end before do get "/" end it "should respond to a 404 on everything" do get '/' last_response.status.should == 404 end it "should return a 'text/html' page" do last_response.content_type.should == 'text/html' end it "should say to go look somewhere else" do last_response.body.should =~ /Not Found/m end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
stickler-2.3.0 | spec/middleware/not_found_spec.rb |