Sha256: ffb1e0741af68c884f76b31a1dc632ac4d7585bf46140ede34db51a37aeb2184
Contents?: true
Size: 581 Bytes
Versions: 1
Compression:
Stored size: 581 Bytes
Contents
require File.expand_path(File.join(File.dirname(__FILE__), '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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
toadhopper-0.9.8 | test/test_posting.rb |