diff options
Diffstat (limited to 'test/app_test.rb')
| -rw-r--r-- | test/app_test.rb | 9 | 
1 files changed, 9 insertions, 0 deletions
| diff --git a/test/app_test.rb b/test/app_test.rb index 0b4c90b..cbee636 100644 --- a/test/app_test.rb +++ b/test/app_test.rb @@ -5,4 +5,13 @@ class AppTest < Test::Unit::TestCase      app = HCl::App.new      assert HCl::Commands.instance_methods.all? { |c| app.command? c  }, 'all methods are commands'    end + +  def test_command_show +    HCl::DayEntry.expects(:all).returns([HCl::DayEntry.new({ +      hours:'2.06', +      notes: 'hi world', +      project: 'App' +    })]) +    HCl::App.command 'show' +  end  end | 
