diff options
| author | Zack Hobson | 2013-12-26 21:39:52 -0800 | 
|---|---|---|
| committer | Zack Hobson | 2013-12-26 21:39:52 -0800 | 
| commit | 26ea694048faaad292152b246f24d25eab0cf2ac (patch) | |
| tree | f58e96f6268a6709afdd1198e4c98bf5b10c8398 /test/day_entry_test.rb | |
| parent | 087da79f8c4135acc19a71822295c328c0d57a5a (diff) | |
| download | hcl-26ea694048faaad292152b246f24d25eab0cf2ac.tar.bz2 | |
timesheet_resource: resource scopes
Diffstat (limited to 'test/day_entry_test.rb')
| -rw-r--r-- | test/day_entry_test.rb | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/test/day_entry_test.rb b/test/day_entry_test.rb index baa4f3b..0e391fa 100644 --- a/test/day_entry_test.rb +++ b/test/day_entry_test.rb @@ -3,17 +3,17 @@ require 'test_helper'  class DayEntryTest < HCl::TestCase    def test_all_today_empty      register_uri(:get, '/daily', {projects:[],day_entries:[]}) -    assert HCl::DayEntry.all.empty? +    assert HCl::DayEntry.today.empty?    end    def test_all_today      register_uri(:get, '/daily', {projects:[], day_entries:[{id:1,note:'hi'}]}) -    assert_equal 'hi', HCl::DayEntry.all.first.note +    assert_equal 'hi', HCl::DayEntry.today.first.note    end    def test_all_with_date      register_uri(:get, '/daily/013/2013', {projects:[], day_entries:[{id:1,note:'hi'}]}) -    assert_equal 'hi', HCl::DayEntry.all(Date.civil(2013,1,13)).first.note +    assert_equal 'hi', HCl::DayEntry.daily(Date.civil(2013,1,13)).first.note    end    def test_toggle | 
