summaryrefslogtreecommitdiff
path: root/test/unit
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/nicknym/source_test.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/unit/nicknym/source_test.rb b/test/unit/nicknym/source_test.rb
index 41f5ac0..76337d4 100644
--- a/test/unit/nicknym/source_test.rb
+++ b/test/unit/nicknym/source_test.rb
@@ -9,7 +9,7 @@ class NicknymSourceTest < Minitest::Test
end
def test_available_for_domain
- adapter.expect :get, [200, 'dummy body'],
+ adapter.expect :get, [200, '{"services": ["mx"]}'],
['https://leap_powered.tld/provider.json']
assert source.available_for?('leap_powered.tld')
adapter.verify
@@ -24,7 +24,8 @@ class NicknymSourceTest < Minitest::Test
def test_successful_query
adapter.expect :get, [200, 'dummy body'],
- ['https://nicknym.leap_powered.tld', address: email_stub.to_s]
+ ['https://nicknym.leap_powered.tld:6425',
+ {query: {address: email_stub.to_s}}]
response = source.query(email_stub)
assert_equal 200, response.status
assert_equal 'dummy body', response.content