summaryrefslogtreecommitdiffstats
path: root/test/command_test.rb
diff options
context:
space:
mode:
authorZack Hobson2013-12-27 13:19:57 -0800
committerZack Hobson2013-12-27 13:19:57 -0800
commit8e2e788909c6a634976c80eeb75c79af8f8ab734 (patch)
tree8314e9ad539476d0e327ad20abde667203f4115f /test/command_test.rb
parent89867bd84610d6d5622540a7e26b6c3467d632bf (diff)
downloadhcl-8e2e788909c6a634976c80eeb75c79af8f8ab734.tar.bz2
pass http client into instance commands
Diffstat (limited to 'test/command_test.rb')
-rw-r--r--test/command_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/command_test.rb b/test/command_test.rb
index 56c7d93..a0cdca1 100644
--- a/test/command_test.rb
+++ b/test/command_test.rb
@@ -69,7 +69,7 @@ class CommandTest < HCl::TestCase
project: HCl::Project.new(id:456, name:'App', client:'Bob', code:'b')
)
HCl::Task.expects(:find).with('456','123').returns(task)
- task.expects(:start).with(starting_time:nil, note:'do stuff')
+ task.expects(:start).with(http, starting_time:nil, note:'do stuff')
start *%w[ 456 123 do stuff ]
end
@@ -106,7 +106,7 @@ class CommandTest < HCl::TestCase
def test_note
entry = stub
HCl::DayEntry.expects(:with_timer).returns(entry)
- entry.expects(:append_note).with('hi world')
+ entry.expects(:append_note).with(http, 'hi world')
note 'hi world'
end