summaryrefslogtreecommitdiffstats
path: root/test/command_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/command_test.rb')
-rw-r--r--test/command_test.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/command_test.rb b/test/command_test.rb
index 2e2812f..e3f9806 100644
--- a/test/command_test.rb
+++ b/test/command_test.rb
@@ -100,6 +100,14 @@ class CommandTest < HCl::TestCase
entry = stub
HCl::DayEntry.expects(:with_timer).with(http).returns(entry)
entry.expects(:cancel).with(http).returns(true)
+ expects(:ask).returns('y')
+ cancel
+ end
+
+ def test_cancel_no
+ entry = stub
+ HCl::DayEntry.expects(:with_timer).with(http).returns(entry)
+ expects(:ask).returns('n')
cancel
end