From 064df3e07b868c551ac6092742f4f46bf69810c6 Mon Sep 17 00:00:00 2001 From: Joenio Costa Date: Tue, 26 Jul 2016 21:24:48 -0300 Subject: [PATCH] private-scrap: fix functional test --- test/functional/profile_controller_test.rb | 2 ++ 1 file changed, 2 insertions(+), 0 deletions(-) diff --git a/test/functional/profile_controller_test.rb b/test/functional/profile_controller_test.rb index 754c2ef..4fddb9c 100644 --- a/test/functional/profile_controller_test.rb +++ b/test/functional/profile_controller_test.rb @@ -2089,6 +2089,8 @@ class ProfileControllerTest < ActionController::TestCase ProfileFollower.create!(:profile => p3, :circle => c1) entries = "Circle_#{c1.id},Person_#{p1.id},Person_#{p2.id}" + @controller.stubs(:profile).returns(@profile) + @controller.stubs(:user).returns(@profile) marked_people = @controller.send(:treat_followed_entries, entries) assert_equivalent [p1,p2,p3], marked_people -- libgit2 0.21.2