Sha256: 3b3dec155d6e3117b8fd4022efd93aa9e8de7cc5a9dd771baf1cb0799ebf7a3d

Contents?: true

Size: 352 Bytes

Versions: 3

Compression:

Stored size: 352 Bytes

Contents

require 'helper'

class TestMechanizeFileRequest < MiniTest::Unit::TestCase

  def test_initialize
    uri = URI.parse 'http://example/'

    r = Mechanize::FileRequest.new uri

    assert_equal uri, r.uri
    assert_equal '/', r.path

    assert_respond_to r, :[]=
    assert_respond_to r, :add_field
    assert_respond_to r, :each_header
  end

end

Version data entries

3 entries across 3 versions & 3 rubygems

Version Path
aai10-mechanize-2.0.1.0 test/test_mechanize_file_request.rb
neocoin-mechanize-2.0.2 test/test_mechanize_file_request.rb
mechanize-2.0.1 test/test_mechanize_file_request.rb