Sha256: 31b62e52ebadce591f638c9785fb0ee3a5509ea308c3f13b8a1391bf2cf39354
Contents?: true
Size: 391 Bytes
Versions: 2
Compression:
Stored size: 391 Bytes
Contents
require_relative '../test_helper' class RequestTestHelper < Minitest::Test def mock_response_body raise NotImplementedError end def mock_response res = Minitest::Mock.new res.expect(:body, mock_response_body) end def mock_client client = Minitest::Mock.new client.expect(:home_marketplace_id, '123') client.expect(:post, mock_response, [Hash]) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mws-orders-0.0.2 | test/requests/test_helper.rb |
mws-orders-0.0.1 | test/requests/test_helper.rb |