diff options
| author | Zack Hobson | 2013-12-20 11:17:35 -0800 |
|---|---|---|
| committer | Zack Hobson | 2013-12-20 11:17:35 -0800 |
| commit | fd2bb13174bb2605fac838c666597f6f223e81dc (patch) | |
| tree | bdf8032e55d2ddd4ffafea60bbfd547942d723ac /test | |
| parent | 33e5f975dc7690642097267ef926ff8ad06c86b7 (diff) | |
| download | hcl-fd2bb13174bb2605fac838c666597f6f223e81dc.tar.bz2 | |
log: check for a running timer.
Diffstat (limited to 'test')
| -rw-r--r-- | test/command_test.rb | 5 |
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, |
