From a8c4d71adc3172debf1c37e60884ee0016748c44 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Sat, 3 Aug 2013 14:24:54 -0300 Subject: [PATCH] rails3: fix ProfileHelper unit tests --- test/unit/profile_helper_test.rb | 4 ++++ 1 file changed, 4 insertions(+), 0 deletions(-) diff --git a/test/unit/profile_helper_test.rb b/test/unit/profile_helper_test.rb index c280c46..8959265 100644 --- a/test/unit/profile_helper_test.rb +++ b/test/unit/profile_helper_test.rb @@ -13,6 +13,10 @@ class ProfileHelperTest < ActiveSupport::TestCase end attr_reader :profile, :helper + def controller + @controller ||= ProfileController.new + end + should 'not display field if field is not active and not forced' do profile.expects(:active_fields).returns([]) assert_equal '', display_field('Title', profile, 'field') -- libgit2 0.21.2