diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/command_test.rb | 8 | 
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  | 
