Sha256: c0c8f3c6cafa4a4e20af72c4a473e362addf7f2ec1974b00a3b879ac5ff94dec
Contents?: true
Size: 530 Bytes
Versions: 8
Compression:
Stored size: 530 Bytes
Contents
require "#{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_app_not_found assert_raises(Heroku::API::Errors::NotFound) do heroku.get_logs(random_name, 'logplex' => true) end end end
Version data entries
8 entries across 8 versions & 1 rubygems