Sha256: e58656c5cea4462ff4463c963b9d18bf7001b7a86112fd1d01d896cd9ed58c21

Contents?: true

Size: 492 Bytes

Versions: 16

Compression:

Stored size: 492 Bytes

Contents

require File.expand_path("#{File.dirname(__FILE__)}/test_helper")

class TestAttachments < Minitest::Test

  def test_get_attachments
    with_app do |app_data|
      response = heroku.get_attachments(app_data['name'])

      assert_equal(200, response.status)
      assert_equal(
        [],
        response.body
      )
    end
  end

  def test_get_attachments_app_not_found
    assert_raises(Heroku::API::Errors::NotFound) do
      heroku.get_attachments(random_name)
    end
  end

end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
heroku-api-0.4.3 test/test_attachments.rb
heroku-api-0.4.2 test/test_attachments.rb
heroku-api-0.4.1 test/test_attachments.rb
heroku-api-0.4.0 test/test_attachments.rb
heroku-api-0.3.23 test/test_attachments.rb
heroku-api-0.3.22 test/test_attachments.rb
heroku-api-0.3.21 test/test_attachments.rb
heroku-api-0.3.20 test/test_attachments.rb
heroku-api-0.3.19 test/test_attachments.rb
heroku-api-0.3.18 test/test_attachments.rb
heroku-api-0.3.17 test/test_attachments.rb
heroku-api-0.3.16 test/test_attachments.rb
heroku-api-0.3.15 test/test_attachments.rb
heroku-api-0.3.14 test/test_attachments.rb
heroku-api-0.3.13 test/test_attachments.rb
heroku-api-0.3.12 test/test_attachments.rb