Skip to content
This repository has been archived by the owner on Jan 24, 2022. It is now read-only.

Commit

Permalink
Merge pull request #349 from petems/fix_test_for_localhost
Browse files Browse the repository at this point in the history
Updates test for localhost resolution
  • Loading branch information
Jonathan Claudius authored Mar 24, 2017
2 parents 653fb55 + c5eb7f6 commit df78ace
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/ssh_scan/string_ext_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@
context "when resolving a DNS name into IP address" do
testing_host = "localhost"
it "should load all the attributes properly" do
expected_result = "::1"
expected_result = /^::1$|^127.0.0.1$/
test_result = testing_host.resolve_fqdn
expect(test_result).to eql(expected_result)
expect(test_result).to match(expected_result)
end
end

Expand Down

0 comments on commit df78ace

Please sign in to comment.