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

Version Path
heroku-api-0.4.3 lib/heroku/api/mock/attachments.rb
heroku-api-0.4.2 lib/heroku/api/mock/attachments.rb
heroku-api-0.4.1 lib/heroku/api/mock/attachments.rb
heroku-api-0.4.0 lib/heroku/api/mock/attachments.rb
heroku-api-0.3.23 lib/heroku/api/mock/attachments.rb
heroku-api-0.3.22 lib/heroku/api/mock/attachments.rb
heroku-api-0.3.21 lib/heroku/api/mock/attachments.rb
heroku-api-0.3.20 lib/heroku/api/mock/attachments.rb
heroku-api-0.3.19 lib/heroku/api/mock/attachments.rb
heroku-api-0.3.18 lib/heroku/api/mock/attachments.rb
heroku-api-0.3.17 lib/heroku/api/mock/attachments.rb
heroku-api-0.3.16 lib/heroku/api/mock/attachments.rb