summaryrefslogtreecommitdiffstats
path: root/test/day_entry_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/day_entry_test.rb')
-rw-r--r--test/day_entry_test.rb6
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