blob: cbee6366b89f15a9faf591276dfbb8460cb1d5a5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
require 'test_helper'
class AppTest < Test::Unit::TestCase
def test_commands
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
|