Sha256: af8cd4d9723e323c71847cb04536a088b6c48627b909961640bd4e13080c01de
Contents?: true
Size: 405 Bytes
Versions: 4
Compression:
Stored size: 405 Bytes
Contents
require 'helper' class RequestTest < Minitest::Test def mock_response_body raise NotImplementedError end def mock_response res = Minitest::Mock.new res.expect(:body, mock_response_body) Peddler::ResponseWrapper.new(res) end def mock_client client = Minitest::Mock.new client.expect(:marketplace_id, '123456') client.expect(:post, mock_response, [Hash]) end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
peddler-0.6.3 | test/request_helper.rb |
peddler-0.6.2 | test/request_helper.rb |
peddler-0.6.1 | test/request_helper.rb |
peddler-0.6.0 | test/request_helper.rb |