Sha256: 0ab509e98c59e157b8c8cc01517942dda35beb49295879ba0bcde197b6d1cdac
Contents?: true
Size: 416 Bytes
Versions: 1
Compression:
Stored size: 416 Bytes
Contents
require File.expand_path(File.join(File.dirname(__FILE__),"spec_helper.rb")) describe Heel::ErrorHandler do before(:each) do @server = Heel::Server.new(%w[--directory /tmp]) end it "should return the error page" do res = Net::HTTP.get_response(URI.parse("http://localhost:4331/does-not-exist")) res.code.should == "404" res.body.should =~ /Not Found/m end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
heel-0.2.0 | spec/error_handler_spec.rb |