summaryrefslogtreecommitdiffstats
path: root/test/command_test.rb
diff options
context:
space:
mode:
authorZack Hobson2013-12-27 13:34:14 -0800
committerZack Hobson2013-12-27 13:34:14 -0800
commit4e6cf745e5d8426f1470c26f705bacbad1514e91 (patch)
tree2e6d7b2882e6a6208ed47de848ee641dd80ad227 /test/command_test.rb
parent8e2e788909c6a634976c80eeb75c79af8f8ab734 (diff)
downloadhcl-4e6cf745e5d8426f1470c26f705bacbad1514e91.tar.bz2
non-global API for net access
Diffstat (limited to 'test/command_test.rb')
-rw-r--r--test/command_test.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/command_test.rb b/test/command_test.rb
index a0cdca1..2e2812f 100644
--- a/test/command_test.rb
+++ b/test/command_test.rb
@@ -91,15 +91,15 @@ class CommandTest < HCl::TestCase
def test_resume_with_task_alias
entry = stub
expects(:get_task_ids).with('mytask',[]).returns(%w[ 456 789 ])
- HCl::DayEntry.expects(:last_by_task).with('456', '789').returns(entry)
- entry.expects(:toggle)
+ HCl::DayEntry.expects(:last_by_task).with(http, '456', '789').returns(entry)
+ entry.expects(:toggle).with(http)
resume 'mytask'
end
def test_cancel
entry = stub
- HCl::DayEntry.expects(:with_timer).returns(entry)
- entry.expects(:cancel).returns(true)
+ HCl::DayEntry.expects(:with_timer).with(http).returns(entry)
+ entry.expects(:cancel).with(http).returns(true)
cancel
end