From 051dc214cc127558ee7e835154b28b7e9fbfb0d4 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Wed, 29 Oct 2014 19:23:54 -0200 Subject: [PATCH] ProfileHelper: fix broken test --- test/unit/profile_helper_test.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/unit/profile_helper_test.rb b/test/unit/profile_helper_test.rb index eb3a1be..4ab943e 100644 --- a/test/unit/profile_helper_test.rb +++ b/test/unit/profile_helper_test.rb @@ -59,12 +59,13 @@ class ProfileHelperTest < ActiveSupport::TestCase assert_equal '', display_work end - should 'display work info if both fields should be displayed' do + should 'display work info if any of the fields is to be displayed' do self.stubs(:user).returns(nil) profile.stubs(:may_display_field_to?).returns(true) profile.stubs(:kind_of?).with(Person).returns(:person) profile.expects(:organization).returns('Organization Name') profile.expects(:organization_website).returns('') + profile.expects(:professional_activity).returns('') assert_match /Work.*Organization Name/, display_work end -- libgit2 0.21.2