test/whois/answer/parser/whois.nic.ve_test.rb in whois-1.2.0 vs test/whois/answer/parser/whois.nic.ve_test.rb in whois-1.2.1

- old
+ new

@@ -20,16 +20,30 @@ assert_equal expected, parser.status assert_equal expected, parser.instance_eval { @status } end def test_available? - assert !@klass.new(load_part('/registered.txt')).available? - assert @klass.new(load_part('/available.txt')).available? + parser = @klass.new(load_part('/registered.txt')) + expected = false + assert_equal expected, parser.available? + assert_equal expected, parser.instance_eval { @available } + + parser = @klass.new(load_part('/available.txt')) + expected = true + assert_equal expected, parser.available? + assert_equal expected, parser.instance_eval { @available } end def test_registered? - assert @klass.new(load_part('/registered.txt')).registered? - assert !@klass.new(load_part('/available.txt')).registered? + parser = @klass.new(load_part('/registered.txt')) + expected = true + assert_equal expected, parser.registered? + assert_equal expected, parser.instance_eval { @registered } + + parser = @klass.new(load_part('/available.txt')) + expected = false + assert_equal expected, parser.registered? + assert_equal expected, parser.instance_eval { @registered } end def test_created_on parser = @klass.new(load_part('/registered.txt'))