diff options
| author | Zack Hobson | 2013-12-27 13:19:57 -0800 | 
|---|---|---|
| committer | Zack Hobson | 2013-12-27 13:19:57 -0800 | 
| commit | 8e2e788909c6a634976c80eeb75c79af8f8ab734 (patch) | |
| tree | 8314e9ad539476d0e327ad20abde667203f4115f /test/task_test.rb | |
| parent | 89867bd84610d6d5622540a7e26b6c3467d632bf (diff) | |
| download | hcl-8e2e788909c6a634976c80eeb75c79af8f8ab734.tar.bz2 | |
pass http client into instance commands
Diffstat (limited to 'test/task_test.rb')
| -rw-r--r-- | test/task_test.rb | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/test/task_test.rb b/test/task_test.rb index 3deb620..b224ed3 100644 --- a/test/task_test.rb +++ b/test/task_test.rb @@ -23,7 +23,7 @@ class TaskTest < HCl::TestCase      task = HCl::Task.new(id:1, project:HCl::Project.new({id:2}))      register_uri(:post, '/daily/add', {        note:'good stuff', hours:0.2, project_id:2, task_id:1, spent_at: Date.today}) -    entry = task.add(note:'good stuff', starting_time:0.2) +    entry = task.add(http, note:'good stuff', starting_time:0.2)      assert_equal 'good stuff', entry.note    end @@ -32,7 +32,7 @@ class TaskTest < HCl::TestCase      register_uri(:post, '/daily/add', {        note:'good stuff', timer_started_at:DateTime.now,        hours:0.2, project_id:2, task_id:1, spent_at: Date.today}) -    entry = task.start(note:'good stuff', starting_time:0.2) +    entry = task.start(http, note:'good stuff', starting_time:0.2)      assert_equal 'good stuff', entry.note    end @@ -41,7 +41,7 @@ class TaskTest < HCl::TestCase      register_uri(:post, '/daily/add', {id:123, note:'woot'})      register_uri(:get, '/daily/timer/123', {note:'good stuff', hours:0.2,                                              project_id:2, task_id:1, spent_at: Date.today}) -    entry = task.start(note:'good stuff', starting_time:0.2) +    entry = task.start(http, note:'good stuff', starting_time:0.2)      assert_equal 'good stuff', entry.note    end  end | 
