Sha256: c6d29db08f11f0dfb7b93edd84d492e931a118a8517a1d0502ad548fe9205a81
Contents?: true
Size: 398 Bytes
Versions: 2
Compression:
Stored size: 398 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::Response.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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
peddler-0.6.5 | test/request_helper.rb |
peddler-0.6.4 | test/request_helper.rb |