Commit a8c4d71adc3172debf1c37e60884ee0016748c44
1 parent
f0f47ad9
Exists in
master
and in
29 other branches
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 | 13 | end |
14 | 14 | attr_reader :profile, :helper |
15 | 15 | |
16 | + def controller | |
17 | + @controller ||= ProfileController.new | |
18 | + end | |
19 | + | |
16 | 20 | should 'not display field if field is not active and not forced' do |
17 | 21 | profile.expects(:active_fields).returns([]) |
18 | 22 | assert_equal '', display_field('Title', profile, 'field') | ... | ... |