diff options
| author | Zack Hobson | 2013-12-22 18:10:22 -0800 |
|---|---|---|
| committer | Zack Hobson | 2013-12-22 18:10:22 -0800 |
| commit | 71edf6d36f0cbfe3580501456779082ae7166d51 (patch) | |
| tree | 71b8c15a8891b75a06809b79bd6225d9399bbb27 /test/timesheet_resource_test.rb | |
| parent | 54af5191fb6723e17f4427974a90488bfb341936 (diff) | |
| download | hcl-71edf6d36f0cbfe3580501456779082ae7166d51.tar.bz2 | |
improved harvest middleware
Diffstat (limited to 'test/timesheet_resource_test.rb')
| -rw-r--r-- | test/timesheet_resource_test.rb | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/test/timesheet_resource_test.rb b/test/timesheet_resource_test.rb index 4153429..1f1b1de 100644 --- a/test/timesheet_resource_test.rb +++ b/test/timesheet_resource_test.rb @@ -19,19 +19,22 @@ class TimesheetResourceTest < HCl::TestCase end def test_http_get - FakeWeb.register_uri(:get, "https://bob:secret@bobclock.harvestapp.com/foo", :body => 'gotten!') + FakeWeb.register_uri(:get, "https://bob:secret@bobclock.harvestapp.com/foo", + :body => 'gotten!'.inspect) body = HCl::TimesheetResource.get 'foo' assert_equal 'gotten!', body end def test_http_post - FakeWeb.register_uri(:post, "https://bob:secret@bobclock.harvestapp.com/foo", :body => 'posted!') + FakeWeb.register_uri(:post, "https://bob:secret@bobclock.harvestapp.com/foo", + :body => 'posted!'.inspect) body = HCl::TimesheetResource.post 'foo', {pizza:'taco'} assert_equal 'posted!', body end def test_http_delete - FakeWeb.register_uri(:delete, "https://bob:secret@bobclock.harvestapp.com/foo", :body => 'wiped!') + FakeWeb.register_uri(:delete, "https://bob:secret@bobclock.harvestapp.com/foo", + :body => 'wiped!'.inspect) body = HCl::TimesheetResource.delete 'foo' assert_equal 'wiped!', body end |
