Sha256: 32171b0a2f4118eefffaf3bc2d992fafa03487033a13f59865ae3448b43ac12b
Contents?: true
Size: 524 Bytes
Versions: 3
Compression:
Stored size: 524 Bytes
Contents
require 'helper' class TestMechanizeFormField < MiniTest::Unit::TestCase def test_field_spaceship doc = Nokogiri::HTML::Document.new node = doc.create_element('input') node['name'] = 'foo' node['value'] = 'bar' a = Mechanize::Form::Field.new(node) b = Mechanize::Form::Field.new({'name' => 'foo'}, 'bar') c = Mechanize::Form::Field.new({'name' => 'foo'}, 'bar') assert_equal [a, b], [a, b].sort assert_equal [a, b], [b, a].sort assert_equal [b, c].sort, [b, c].sort end end
Version data entries
3 entries across 3 versions & 3 rubygems
Version | Path |
---|---|
aai10-mechanize-2.0.1.0 | test/test_mechanize_form_field.rb |
neocoin-mechanize-2.0.2 | test/test_mechanize_form_field.rb |
mechanize-2.0.1 | test/test_mechanize_form_field.rb |