Sha256: fccb1fa6374d370f5f62f1220c7ea8b21b9e553f925bbbc5254788ac7d5a6ae2
Contents?: true
Size: 530 Bytes
Versions: 1
Compression:
Stored size: 530 Bytes
Contents
require 'helper' class Toadhopper::TestPosting < Test::Unit::TestCase def test_posting response = Toadhopper('bogus key').post!(error) assert_equal 422, response.status assert_equal ['No project exists with the given API key.'], response.errors end if ENV['AIRBRAKE_API_KEY'] def test_posting_integration toadhopper.filters = "AIRBRAKE_API_KEY", "ROOT_PASSWORD" response = toadhopper.post!(error) assert_equal 200, response.status assert_equal [], response.errors end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
toadhopper-2.0 | test/test_posting.rb |