diff options
| author | Zack Hobson | 2013-11-21 12:59:36 -0800 |
|---|---|---|
| committer | Zack Hobson | 2013-11-21 12:59:36 -0800 |
| commit | 6c903fd0c4ef000c01ff7a3ece0cf9da27b3530c (patch) | |
| tree | 79fdd29f3e43fa648f75b21af599fcf5941fb5ee /test/app_test.rb | |
| parent | ba28437f7a56e0f817fe1b51e46e756b7f6cc1f9 (diff) | |
| download | hcl-6c903fd0c4ef000c01ff7a3ece0cf9da27b3530c.tar.bz2 | |
coverage tests for app, command, task.
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 |
