Commit 051dc214cc127558ee7e835154b28b7e9fbfb0d4

Authored by Antonio Terceiro
1 parent 5b3c230b

ProfileHelper: fix broken test

*sigh*
Showing 1 changed file with 2 additions and 1 deletions   Show diff stats
test/unit/profile_helper_test.rb
... ... @@ -59,12 +59,13 @@ class ProfileHelperTest < ActiveSupport::TestCase
59 59 assert_equal '', display_work
60 60 end
61 61  
62   - should 'display work info if both fields should be displayed' do
  62 + should 'display work info if any of the fields is to be displayed' do
63 63 self.stubs(:user).returns(nil)
64 64 profile.stubs(:may_display_field_to?).returns(true)
65 65 profile.stubs(:kind_of?).with(Person).returns(:person)
66 66 profile.expects(:organization).returns('Organization Name')
67 67 profile.expects(:organization_website).returns('')
  68 + profile.expects(:professional_activity).returns('')
68 69 assert_match /Work.*Organization Name/, display_work
69 70 end
70 71  
... ...