test/test_validator.rb in args_parser-0.1.6 vs test/test_validator.rb in args_parser-0.2.0

- old
+ new

@@ -10,20 +10,20 @@ arg :url, 'URL' validate :url, 'invalid URL' do |v| v =~ Regexp.new("^https?://.+$") end - + on_validate_error do |err, name, value| @@err = err @@name = name @@value = value end end end def test_validate_error - assert @@name == :url - assert @@value == 'hptt://shokai.org' - assert @@err.class == ArgsParser::ValidationError + assert_equal @@name, :url + assert_equal @@value, 'hptt://shokai.org' + assert_equal @@err.class, ArgsParser::ValidationError end end