From 72bd78b69bdaf31e542f59edba0e0f681cf15c59 Mon Sep 17 00:00:00 2001
From: Mauricio Giacomini Girardello <mgg12@inf.ufpr.br>
Date: Thu, 19 May 2016 11:03:57 -0300
Subject: [PATCH] adding highlights scopes tests for collections

---
 test/models/collection_test.rb | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/test/models/collection_test.rb b/test/models/collection_test.rb
index 758411c5..242f37db 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
-- 
GitLab