test/test_daemon.rb in rubydns-0.6.7 vs test/test_daemon.rb in rubydns-0.7.0

- old
+ new

@@ -45,11 +45,11 @@ transaction.respond!("192.168.1.2") end # Default DNS handler otherwise do |transaction| - transaction.failure!(:NXDomain) + transaction.fail!(:NXDomain) end end end end @@ -66,11 +66,11 @@ def test_basic_dns assert_equal :running, RExec::Daemon::ProcessFile.status(BasicTestServer) EventMachine.run do - resolver = resolver = RubyDNS::Resolver.new(BasicTestServer::SERVER_PORTS) + resolver = RubyDNS::Resolver.new(BasicTestServer::SERVER_PORTS) resolver.query("test.local") do |response| answer = response.answer.first assert_equal "test.local", answer[0].to_s @@ -83,10 +83,10 @@ def test_pattern_matching assert_equal :running, RExec::Daemon::ProcessFile.status(BasicTestServer) EventMachine.run do - resolver = resolver = RubyDNS::Resolver.new(BasicTestServer::SERVER_PORTS) + resolver = RubyDNS::Resolver.new(BasicTestServer::SERVER_PORTS) resolver.query("foobar") do |response| answer = response.answer.first assert_equal "foobar", answer[0].to_s