summaryrefslogtreecommitdiffstats
path: root/test/command_test.rb
diff options
context:
space:
mode:
authorZack Hobson2013-12-26 15:43:13 -0800
committerZack Hobson2013-12-26 15:43:13 -0800
commit5662c7eb3ddba718c2dd18b5831af3eab23d93e1 (patch)
treef68e4f09bd60b69ed22eaaf8facf8598f1ed45e1 /test/command_test.rb
parentb7bfb51eb9483e1cbfd6f460d63056fadb0d692e (diff)
downloadhcl-5662c7eb3ddba718c2dd18b5831af3eab23d93e1.tar.bz2
Revert "timesheet_resource: API improvements"
This reverts commit eada20ef66ade0b9a98ef5f03256a73ce428244b.
Diffstat (limited to 'test/command_test.rb')
-rw-r--r--test/command_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/command_test.rb b/test/command_test.rb
index 59456cf..dd6f440 100644
--- a/test/command_test.rb
+++ b/test/command_test.rb
@@ -24,7 +24,7 @@ class CommandTest < HCl::TestCase
end
def test_tasks
- HCl::Task.expects(:get_all).returns([HCl::Task.new(
+ HCl::Task.expects(:all).returns([HCl::Task.new(
id:123,
name: 'Dev',
project: HCl::Project.new(id:456, name:'App', client:'Bob', code:'b')
@@ -34,7 +34,7 @@ class CommandTest < HCl::TestCase
end
def test_show
- HCl::DayEntry.expects(:get_all).returns([HCl::DayEntry.new({
+ HCl::DayEntry.expects(:all).returns([HCl::DayEntry.new({
hours:'2.06',
notes: 'hi world',
project: 'App'
@@ -46,7 +46,7 @@ class CommandTest < HCl::TestCase
end
def test_aliases
- HCl::Task.expects(:get_all).returns([HCl::Task.new(
+ HCl::Task.expects(:all).returns([HCl::Task.new(
id:123,
name: 'Dev',
project: HCl::Project.new(id:456, name:'App', client:'Bob', code:'b')