diff --git a/test/models/collection_test.rb b/test/models/collection_test.rb index 758411c545ad260d9420ec262d722139922ee98b..242f37dbf6ab6b9861e98ca460fce83feb480b72 100644 --- a/test/models/collection_test.rb +++ b/test/models/collection_test.rb @@ -47,6 +47,14 @@ class CollectionTest < ActiveSupport::TestCase include ::Portalmec::SociableTests + test 'should get all collections created this week' do + Collection.this_week.each {|o| assert_instance_of Collection, o} + end + + test 'should get all collections created this month' do + Collection.this_month.each {|o| assert_instance_of Collection, o} + end + protected def sociable_object