Sha256: b40b8f5ca2356a573572a9b46bdd77df9a7ec32a6f5e91c8071c62380db18524
Contents?: true
Size: 528 Bytes
Versions: 6
Compression:
Stored size: 528 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['HOPTOAD_API_KEY'] def test_posting_integration toadhopper.filters = "HOPTOAD_API_KEY", "ROOT_PASSWORD" response = toadhopper.post!(error) assert_equal 200, response.status assert_equal [], response.errors end end end
Version data entries
6 entries across 6 versions & 1 rubygems