Sha256: f7b9c88746da173d87bf396fe72f2f696d7e6026724597e7486c303dbae9bdb9
Contents?: true
Size: 1.26 KB
Versions: 21
Compression:
Stored size: 1.26 KB
Contents
require File.expand_path("#{File.dirname(__FILE__)}/../../unit_spec_helper") module JsTestCore module Resources describe WebRoot do describe "GET / - ResourceNotFound" do it "returns a 404 error" do response = get("/i_dont_exist") response.should be_http( 404, {}, Regexp.new("File /i_dont_exist not found") ) end end describe "PUT / - ResourceNotFound" do it "returns a 404 error" do response = put("/i_dont_exist") response.should be_http( 404, {}, Regexp.new("File /i_dont_exist not found") ) end end describe "POST / - ResourceNotFound" do it "returns a 404 error" do response = post("/i_dont_exist") response.should be_http( 404, {}, Regexp.new("File /i_dont_exist not found") ) end end describe "DELETE / - ResourceNotFound" do it "returns a 404 error" do response = delete("/i_dont_exist") response.should be_http( 404, {}, Regexp.new("File /i_dont_exist not found") ) end end end end end
Version data entries
21 entries across 21 versions & 6 rubygems