diff options
author | Azul <azul@riseup.net> | 2017-09-22 18:40:45 +0200 |
---|---|---|
committer | Azul <azul@riseup.net> | 2017-09-22 18:40:45 +0200 |
commit | c0410a5a5c5dbdd5fa182ac25d72ebb99e48bbb3 (patch) | |
tree | 653c56240d681e1aaf5f7f0ef00904d0bd24301f /test | |
parent | 3f777b4cbc7eaa4d127ec31e1d625bba65a40c0d (diff) |
fiX: tests need different names, warnings
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/sample_test.rb | 6 | ||||
-rw-r--r-- | test/support/http_stub_helper.rb | 3 |
2 files changed, 4 insertions, 5 deletions
diff --git a/test/functional/sample_test.rb b/test/functional/sample_test.rb index 18fad74..2b49527 100644 --- a/test/functional/sample_test.rb +++ b/test/functional/sample_test.rb @@ -18,19 +18,19 @@ class SampleTest < FunctionalTest # assert_lookup_status 400, 'invalid' # end - def test_nicknym + def test_nicknym_success assert_lookup_status 200, 'test@mail.bitmask.net' end # Regression Tests # #3 handle missing A records - def test_nicknym + def test_nicknym_handles_missing_a_record assert_lookup_status 404, 'postmaster@cs.ucl.ac.uk' end # platform/#8674 handle nonexisting domains - def test_nicknym + def test_nicknym_handles_missing_domain assert_lookup_status 404, 'postmaster@now-dont-you-dare-register-this-domain.coop' end diff --git a/test/support/http_stub_helper.rb b/test/support/http_stub_helper.rb index 4e3d89b..cc9196e 100644 --- a/test/support/http_stub_helper.rb +++ b/test/support/http_stub_helper.rb @@ -27,8 +27,7 @@ module HttpStubHelper def stub_couch_response(uid, response = {}) query = "\?key=#{"%22#{uid}%22"}&reduce=false" - stub_http_get /#{Regexp.escape(config.couch_url)}.*#{query}/, - response + stub_http_get(/#{Regexp.escape(config.couch_url)}.*#{query}/, response) end private |