diff options
Diffstat (limited to 'test/support')
-rw-r--r-- | test/support/request_handler_test_helper.rb | 6 |
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) |