Sha256: 55fdc5ef9164a19ac0eaee73df863911e60fda9eba6f87507b1241c3d248065d
Contents?: true
Size: 649 Bytes
Versions: 1
Compression:
Stored size: 649 Bytes
Contents
require 'test_helper' class SimpleResponseTest < TestCase def setup @env = {} @env["PATH_INFO"] = "/404" end def test_initializing_without_headers sr = ExceptionsApp::SimpleResponse.new response = sr.call(@env) assert_equal "404", response[0] assert_equal "pass", response[1]["X-Cascade"] end def test_initializing_with_headers sr = ExceptionsApp::SimpleResponse.new({"ContentLength" => 0}) response = sr.call(@env) assert_equal 0, response[1]["ContentLength"] end def test_empty_body sr = ExceptionsApp::SimpleResponse.new response = sr.call(@env) assert_nil response[3] end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
exceptions_app-0.0.1 | test/lib/simple_response_test.rb |