summaryrefslogtreecommitdiff
path: root/test/support/request_handler_test_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/support/request_handler_test_helper.rb')
-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)