Sha256: d1f08c61c8ad299b5c78c0f6d3ac5fbc5dfd5854647fc2fa75272ca1afee4961

Contents?: true

Size: 502 Bytes

Versions: 8

Compression:

Stored size: 502 Bytes

Contents

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

class TestAttachments < MiniTest::Unit::TestCase

  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

8 entries across 8 versions & 2 rubygems

Version Path
heroku-api-0.3.11 test/test_attachments.rb
heroku-api-0.3.10 test/test_attachments.rb
pogoapp-api-0.3.8 test/test_attachments.rb
heroku-api-0.3.9 test/test_attachments.rb
heroku-api-0.3.8 test/test_attachments.rb
heroku-api-0.3.7 test/test_attachments.rb
heroku-api-0.3.6 test/test_attachments.rb
heroku-api-0.3.5 test/test_attachments.rb