diff --git a/spec/integration/whois_spec.rb b/spec/integration/whois_spec.rb index ea76b30b9..fb388cf20 100644 --- a/spec/integration/whois_spec.rb +++ b/spec/integration/whois_spec.rb @@ -6,7 +6,7 @@ let(:response) { "Domain: example.it\nStatus: AVAILABLE\n" } describe "Basic WHOIS querying and parsing" do - it "works" do + it "queries and returns a record" do with_definitions do Whois::Server.define(:tld, "it", "whois.nic.it") expect(Whois::Server::Adapters::Standard.query_handler).to receive(:call) diff --git a/spec/whois/client_spec.rb b/spec/whois/client_spec.rb index aea9feee8..da3c3e925 100644 --- a/spec/whois/client_spec.rb +++ b/spec/whois/client_spec.rb @@ -135,8 +135,8 @@ def lookup(*) describe "#query" do it "sends a query for given domain" do record = described_class.new.lookup("weppos.it") - assert record.match?(/Domain:\s+weppos\.it/) - assert record.match?(/Created:/) + expect(record.match?(/Domain:\s+weppos\.it/)).to be(true) + expect(record.match?(/Created:/)).to be(true) end end end