Commit a8c4d71adc3172debf1c37e60884ee0016748c44

Authored by Antonio Terceiro
1 parent f0f47ad9

rails3: fix ProfileHelper unit tests

Showing 1 changed file with 4 additions and 0 deletions   Show diff stats
test/unit/profile_helper_test.rb
@@ -13,6 +13,10 @@ class ProfileHelperTest < ActiveSupport::TestCase @@ -13,6 +13,10 @@ class ProfileHelperTest < ActiveSupport::TestCase
13 end 13 end
14 attr_reader :profile, :helper 14 attr_reader :profile, :helper
15 15
  16 + def controller
  17 + @controller ||= ProfileController.new
  18 + end
  19 +
16 should 'not display field if field is not active and not forced' do 20 should 'not display field if field is not active and not forced' do
17 profile.expects(:active_fields).returns([]) 21 profile.expects(:active_fields).returns([])
18 assert_equal '', display_field('Title', profile, 'field') 22 assert_equal '', display_field('Title', profile, 'field')