Commit 067cd84bc393fd3f6ebc7681b41f01f06a06f91f

Authored by Braulio Bhavamitra
1 parent 70811f90

application_helper: fix tests

Showing 1 changed file with 3 additions and 3 deletions   Show diff stats
test/unit/application_helper_test.rb
@@ -571,7 +571,7 @@ class ApplicationHelperTest < ActionView::TestCase @@ -571,7 +571,7 @@ class ApplicationHelperTest < ActionView::TestCase
571 env = Environment.default 571 env = Environment.default
572 env.stubs(:enabled?).with(:show_balloon_with_profile_links_when_clicked).returns(true) 572 env.stubs(:enabled?).with(:show_balloon_with_profile_links_when_clicked).returns(true)
573 stubs(:environment).returns(env) 573 stubs(:environment).returns(env)
574 - person = Person.new 574 + person = Person.new identifier: 'person'
575 person.stubs(:url).returns('url for person') 575 person.stubs(:url).returns('url for person')
576 person.stubs(:public_profile_url).returns('url for person') 576 person.stubs(:public_profile_url).returns('url for person')
577 links = links_for_balloon(person) 577 links = links_for_balloon(person)
@@ -582,7 +582,7 @@ class ApplicationHelperTest < ActionView::TestCase @@ -582,7 +582,7 @@ class ApplicationHelperTest < ActionView::TestCase
582 env = Environment.default 582 env = Environment.default
583 env.stubs(:enabled?).with(:show_balloon_with_profile_links_when_clicked).returns(true) 583 env.stubs(:enabled?).with(:show_balloon_with_profile_links_when_clicked).returns(true)
584 stubs(:environment).returns(env) 584 stubs(:environment).returns(env)
585 - community = Community.new 585 + community = Community.new identifier: 'comm'
586 community.stubs(:url).returns('url for community') 586 community.stubs(:url).returns('url for community')
587 community.stubs(:public_profile_url).returns('url for community') 587 community.stubs(:public_profile_url).returns('url for community')
588 links = links_for_balloon(community) 588 links = links_for_balloon(community)
@@ -593,7 +593,7 @@ class ApplicationHelperTest < ActionView::TestCase @@ -593,7 +593,7 @@ class ApplicationHelperTest < ActionView::TestCase
593 env = Environment.default 593 env = Environment.default
594 env.stubs(:enabled?).with(:show_balloon_with_profile_links_when_clicked).returns(true) 594 env.stubs(:enabled?).with(:show_balloon_with_profile_links_when_clicked).returns(true)
595 stubs(:environment).returns(env) 595 stubs(:environment).returns(env)
596 - enterprise = Enterprise.new 596 + enterprise = Enterprise.new identifier: 'coop'
597 enterprise.stubs(:url).returns('url for enterprise') 597 enterprise.stubs(:url).returns('url for enterprise')
598 enterprise.stubs(:public_profile_url).returns('url for enterprise') 598 enterprise.stubs(:public_profile_url).returns('url for enterprise')
599 stubs(:catalog_path) 599 stubs(:catalog_path)