Sha256: 825e9d20eef5d8811c7f5910c36526f4ebc96a46b59f70df749881e793d6c6d6

Contents?: true

Size: 406 Bytes

Versions: 41

Compression:

Stored size: 406 Bytes

Contents

require 'mechanize/test_case'

class TestMechanizeFormFileUpload < Mechanize::TestCase

  def test_file_name
    field = node 'input'
    field = Mechanize::Form::FileUpload.new field, 'a&b'

    assert_equal 'a&b', field.file_name
  end

  def test_file_name_entity
    field = node 'input'
    field = Mechanize::Form::FileUpload.new field, 'a&amp;b'

    assert_equal 'a&b', field.file_name
  end

end

Version data entries

41 entries across 41 versions & 5 rubygems

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