test/answer/parser/whois.nic.ac_test.rb in whois-1.0.12 vs test/answer/parser/whois.nic.ac_test.rb in whois-1.1.0

- old
+ new

@@ -11,16 +11,16 @@ def test_domain parser = @klass.new(load_part('/registered.txt')) expected = "google.ac" assert_equal expected, parser.domain - assert_equal expected, parser.instance_variable_get(:"@domain") + assert_equal expected, parser.instance_eval { @domain } parser = @klass.new(load_part('/available.txt')) expected = "u34jedzcq.ac" assert_equal expected, parser.domain - assert_equal expected, parser.instance_variable_get(:"@domain") + assert_equal expected, parser.instance_eval { @domain } end def test_domain_id assert_raise(Whois::PropertyNotSupported) { @klass.new(load_part('/registered.txt')).domain_id } assert_raise(Whois::PropertyNotSupported) { @klass.new(load_part('/available.txt')).domain_id } @@ -29,16 +29,16 @@ def test_status parser = @klass.new(load_part('/registered.txt')) expected = :registered assert_equal expected, parser.status - assert_equal expected, parser.instance_variable_get(:"@status") + assert_equal expected, parser.instance_eval { @status } parser = @klass.new(load_part('/available.txt')) expected = :available assert_equal expected, parser.status - assert_equal expected, parser.instance_variable_get(:"@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? @@ -69,22 +69,22 @@ def test_registrar assert_raise(Whois::PropertyNotSupported) { @klass.new(load_part('/registered.txt')).registrar } assert_raise(Whois::PropertyNotSupported) { @klass.new(load_part('/available.txt')).registrar } end - def test_registrant - assert_raise(Whois::PropertyNotSupported) { @klass.new(load_part('/registered.txt')).registrant } - assert_raise(Whois::PropertyNotSupported) { @klass.new(load_part('/available.txt')).registrant } + def test_registrant_contact + assert_raise(Whois::PropertyNotSupported) { @klass.new(load_part('/registered.txt')).registrant_contact } + assert_raise(Whois::PropertyNotSupported) { @klass.new(load_part('/available.txt')).registrant_contact } end - def test_admin - assert_raise(Whois::PropertyNotSupported) { @klass.new(load_part('/registered.txt')).admin } - assert_raise(Whois::PropertyNotSupported) { @klass.new(load_part('/available.txt')).admin } + def test_admin_contact + assert_raise(Whois::PropertyNotSupported) { @klass.new(load_part('/registered.txt')).admin_contact } + assert_raise(Whois::PropertyNotSupported) { @klass.new(load_part('/available.txt')).admin_contact } end - def test_technical - assert_raise(Whois::PropertyNotSupported) { @klass.new(load_part('/registered.txt')).technical } - assert_raise(Whois::PropertyNotSupported) { @klass.new(load_part('/available.txt')).technical } + def test_technical_contact + assert_raise(Whois::PropertyNotSupported) { @klass.new(load_part('/registered.txt')).technical_contact } + assert_raise(Whois::PropertyNotSupported) { @klass.new(load_part('/available.txt')).technical_contact } end def test_nameservers assert_raise(Whois::PropertyNotSupported) { @klass.new(load_part('/registered.txt')).nameservers }