Skip to content
Snippets Groups Projects
Commit 063ebbea authored by Mauricio Giacomini Girardello's avatar Mauricio Giacomini Girardello
Browse files

adding highlights scopes tests for learning object

parent 1348c09c
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment