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

Version Path
mechanize-2.10.0 test/test_mechanize_file_request.rb
mechanize-2.9.2 test/test_mechanize_file_request.rb
mechanize-2.9.1 test/test_mechanize_file_request.rb
mechanize-2.9.0 test/test_mechanize_file_request.rb
mechanize-2.8.5 test/test_mechanize_file_request.rb
mechanize-2.8.4 test/test_mechanize_file_request.rb
mechanize-2.8.3 test/test_mechanize_file_request.rb
mechanize-2.8.2 test/test_mechanize_file_request.rb
mechanize-2.8.1 test/test_mechanize_file_request.rb
mechanize-2.8.0 test/test_mechanize_file_request.rb
mechanize-2.7.7 test/test_mechanize_file_request.rb
husc-0.2.1 vendor/bundle/gems/mechanize-2.7.6/test/test_mechanize_file_request.rb
husc-0.2.0 vendor/bundle/gems/mechanize-2.7.6/test/test_mechanize_file_request.rb
husc-0.1.1 vendor/bundle/gems/mechanize-2.7.6/test/test_mechanize_file_request.rb
husc-0.1.0 vendor/bundle/gems/mechanize-2.7.6/test/test_mechanize_file_request.rb
mechanize-2.7.6 test/test_mechanize_file_request.rb
mechanize-2.7.5 test/test_mechanize_file_request.rb
mechanize-2.7.4 test/test_mechanize_file_request.rb
mechanize-2.7.3 test/test_mechanize_file_request.rb
mechanize-2.7.2 test/test_mechanize_file_request.rb