Sha256: 6c3cf71d75ec76a07c549c3ebba273e407789a712675ee2e3d05ac452c7bc0c8

Contents?: true

Size: 495 Bytes

Versions: 4

Compression:

Stored size: 495 Bytes

Contents

module Heroku
  class API
    module Mock

      # stub PUT /apps/:app/buildpack-installations
      Excon.stub(:expects => 200, :method => :put, :path => %r{^/apps/([^/]+)/buildpack-installations$}) do |params|
        request_params, mock_data = parse_stub_params(params)
        app, _ = request_params[:captures][:path]

        with_mock_app(mock_data, app) do |app_data|
          {
            :body   => "",
            :status => 200
          }
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
heroku-api-0.4.3 lib/heroku/api/mock/buildpacks.rb
heroku-api-0.4.2 lib/heroku/api/mock/buildpacks.rb
heroku-api-0.4.1 lib/heroku/api/mock/buildpacks.rb
heroku-api-0.4.0 lib/heroku/api/mock/buildpacks.rb