Sha256: cf8ea06807e6b0333e906e30d872f9af2cd73f8421dabd7c97e26c68965aa25b
Contents?: true
Size: 486 Bytes
Versions: 34
Compression:
Stored size: 486 Bytes
Contents
require 'mechanize/test_case' class TestMechanizeFileRequest < Mechanize::TestCase def setup @uri = URI.parse 'file:///nonexistent' @r = Mechanize::FileRequest.new @uri end def test_initialize assert_equal @uri, @r.uri assert_equal '/nonexistent', @r.path assert_respond_to @r, :[]= assert_respond_to @r, :add_field assert_respond_to @r, :each_header end def test_response_body_permitted_eh assert @r.response_body_permitted? end end
Version data entries
34 entries across 34 versions & 3 rubygems