Sha256: e6ef1f23ff6d89048a58e1e9cee90288f442b7e3827bbc79a03da5b08b27af18
Contents?: true
Size: 497 Bytes
Versions: 4
Compression:
Stored size: 497 Bytes
Contents
require File.expand_path("#{File.dirname(__FILE__)}/../../unit_spec_helper") module JsTestCore module Resources describe ResourceNotFound do describe "GET /invalid_path" do it "returns a page with a of files in the directory" do mock(connection).send_head(404) mock(connection).send_body(Regexp.new("File /invalid_path not found.")) connection.receive_data("GET /invalid_path HTTP/1.1\r\nHost: _\r\n\r\n") end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems