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.7.1 test/test_mechanize_form_file_upload.rb
mechanize-2.7.0 test/test_mechanize_form_file_upload.rb
mechanize-2.6.0 test/test_mechanize_form_file_upload.rb
mechanize-2.5.1 test/test_mechanize_form_file_upload.rb
mechanize-2.5 test/test_mechanize_form_file_upload.rb
mechanize-2.4 test/test_mechanize_form_file_upload.rb
frameworks-capybara-0.2.0.rc6 vendor/bundle/ruby/1.8/gems/mechanize-2.3/test/test_mechanize_form_file_upload.rb
frameworks-capybara-0.2.0.rc5 vendor/bundle/ruby/1.8/gems/mechanize-2.3/test/test_mechanize_form_file_upload.rb
frameworks-capybara-0.2.0.rc4 vendor/bundle/ruby/1.8/gems/mechanize-2.3/test/test_mechanize_form_file_upload.rb
frameworks-capybara-0.2.0.rc3 vendor/bundle/ruby/1.8/gems/mechanize-2.3/test/test_mechanize_form_file_upload.rb
frameworks-capybara-0.2.0.rc2 vendor/bundle/ruby/1.8/gems/mechanize-2.3/test/test_mechanize_form_file_upload.rb
mechanize-2.3 test/test_mechanize_form_file_upload.rb
mechanize-2.2.1 test/test_mechanize_form_file_upload.rb
mechanize-2.2 test/test_mechanize_form_file_upload.rb
mechanize-2.1.1 test/test_mechanize_form_file_upload.rb
domo-0.0.5 vendor/bundle/ruby/1.9.1/gems/mechanize-2.1/test/test_mechanize_form_file_upload.rb
diamond-mechanize-2.4 test/test_mechanize_form_file_upload.rb
diamond-mechanize-2.3 test/test_mechanize_form_file_upload.rb
diamond-mechanize-2.1 test/test_mechanize_form_file_upload.rb
mechanize-2.1 test/test_mechanize_form_file_upload.rb