Sha256: e0002f846ed5690ce195a0c6f40b29d9328c344d075cc68b0b820b3fcb9098c1
Contents?: true
Size: 821 Bytes
Versions: 26
Compression:
Stored size: 821 Bytes
Contents
require File.expand_path("#{File.dirname(__FILE__)}/test_helper") class TestLogs < MiniTest::Unit::TestCase def test_get_logs with_app do |app_data| response = heroku.get_logs(app_data['name'], 'logplex' => true) assert_equal(200, response.status) assert_match(%r{^https://logplex\.heroku\.com/sessions/[-a-zA-Z0-9]*\?srv=[0-9]*$}, response.body) end end def test_get_logs_no_options with_app do |app_data| response = heroku.get_logs(app_data['name']) assert_equal(200, response.status) assert_match(%r{^https://logplex\.heroku\.com/sessions/[-a-zA-Z0-9]*\?srv=[0-9]*$}, response.body) end end def test_get_logs_app_not_found assert_raises(Heroku::API::Errors::NotFound) do heroku.get_logs(random_name, 'logplex' => true) end end end
Version data entries
26 entries across 26 versions & 2 rubygems