spec/async/dns/system_spec.rb in async-dns-1.2.4 vs spec/async/dns/system_spec.rb in async-dns-1.2.5

- old
+ new

@@ -28,15 +28,15 @@ include_context Async::RSpec::Reactor it "should have at least one namesever" do expect(Async::DNS::System::nameservers.length).to be > 0 end - - it "should respond to query for google.com" do - resolver = Async::DNS::Resolver.new(Async::DNS::System::nameservers) + it "should respond to query for google.com" do + resolver = Async::DNS::Resolver.new(Async::DNS::System.nameservers) + response = resolver.query('google.com') - + expect(response.class).to be == Async::DNS::Message expect(response.rcode).to be == Resolv::DNS::RCode::NoError end end