Sha256: 8df29c728d810da5c12cef657c62abb1ec1337e8955545ef3b2c855dd72bcb85
Contents?: true
Size: 501 Bytes
Versions: 12
Compression:
Stored size: 501 Bytes
Contents
module Heroku class API module Mock # stub GET /apps/:app/attachments Excon.stub(:expects => 200, :method => :get, :path => %r{^/apps/([^/]+)/attachments}) do |params| request_params, mock_data = parse_stub_params(params) app, _ = request_params[:captures][:path] with_mock_app(mock_data, app) do { :body => MultiJson.dump(mock_data[:attachments][app]), :status => 200 } end end end end end
Version data entries
12 entries across 12 versions & 1 rubygems