diff --git a/test/models/learning_object_test.rb b/test/models/learning_object_test.rb index 8e69b6861c1b627a78fdb4a830f934dcd31a818a..f2924dc9b678914b0cae67e95fa510379aaef648 100644 --- a/test/models/learning_object_test.rb +++ b/test/models/learning_object_test.rb @@ -71,6 +71,14 @@ class LearningObjectTest < ActiveSupport::TestCase } end + test 'should get all learning objects created this week' do + LearningObject.this_week.each {|o| assert_instance_of LearningObject, o} + end + + test 'should get all learning objects created this month' do + LearningObject.this_month.each {|o| assert_instance_of LearningObject, o} + end + protected def sociable_object