summaryrefslogtreecommitdiff
path: root/test/support
diff options
context:
space:
mode:
authorAzul <azul@riseup.net>2016-08-30 12:38:43 +0200
committerAzul <azul@riseup.net>2016-08-31 12:14:52 +0200
commit625416ac16a1216240fc4c48aa19802ef8a967a1 (patch)
treef3a4a54627fcae49bf896f5f58e60b506f9a55d4 /test/support
parentb22e23eb9f5a1cb3e37ab2a26b1091183574f4e4 (diff)
wip: key lookup by address via leaps nicknym
I added a RequestHandler that uses Nicknym::Source - but that has not been implemented yet.
Diffstat (limited to 'test/support')
-rw-r--r--test/support/request_handler_test_helper.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/support/request_handler_test_helper.rb b/test/support/request_handler_test_helper.rb
index 3ca89ba..dd6940d 100644
--- a/test/support/request_handler_test_helper.rb
+++ b/test/support/request_handler_test_helper.rb
@@ -15,9 +15,9 @@ module RequestHandlerTestHelper
end
def source_expecting_query_for(*query_args)
- source = Minitest::Mock.new
- source.expect :query, 'response', query_args
- source
+ @source ||= Minitest::Mock.new
+ @source.expect :query, 'response', query_args
+ @source
end
def assert_responds_with_error(msg, opts)