summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/command_test.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/command_test.rb b/test/command_test.rb
index b554bfd..dd6f440 100644
--- a/test/command_test.rb
+++ b/test/command_test.rb
@@ -18,6 +18,11 @@ class CommandTest < HCl::TestCase
@settings
end
+ def test_log_failure
+ HCl::DayEntry.expects(:with_timer).returns(stub)
+ assert_raises(HCl::CommandError) { log "stuff" }
+ end
+
def test_tasks
HCl::Task.expects(:all).returns([HCl::Task.new(
id:123,