Sha256: 332bc78458a593df430dc4e39a63ce9fd80d3addc73877f440e1c779946056e1

Contents?: true

Size: 513 Bytes

Versions: 12

Compression:

Stored size: 513 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   => Heroku::API::OkJson.encode(mock_data[:attachments][app]),
            :status => 200
          }
        end
      end

    end
  end
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
heroku-api-0.3.15 lib/heroku/api/mock/attachments.rb
heroku-api-0.3.14 lib/heroku/api/mock/attachments.rb
heroku-api-0.3.13 lib/heroku/api/mock/attachments.rb
heroku-api-0.3.12 lib/heroku/api/mock/attachments.rb
heroku-api-0.3.11 lib/heroku/api/mock/attachments.rb
heroku-api-0.3.10 lib/heroku/api/mock/attachments.rb
pogoapp-api-0.3.8 lib/heroku/api/mock/attachments.rb
heroku-api-0.3.9 lib/heroku/api/mock/attachments.rb
heroku-api-0.3.8 lib/heroku/api/mock/attachments.rb
heroku-api-0.3.7 lib/heroku/api/mock/attachments.rb
heroku-api-0.3.6 lib/heroku/api/mock/attachments.rb
heroku-api-0.3.5 lib/heroku/api/mock/attachments.rb