test/unit/activity_test.rb in muck-activity-0.1.3 vs test/unit/activity_test.rb in muck-activity-0.1.4

- old
+ new

@@ -44,6 +44,14 @@ user = Factory(:user) activity = Factory(:activity) assert !activity.can_edit?(user) end -end + should "filter the activities by template" do + @template_name = 'test_template' + user = Factory(:user) + activity = Factory(:activity, :source => user, :template => @template_name) + user.activities << activity + assert user.activities.filter_by_template(@template_name).include?(activity) + end + +end \ No newline at end of file