Commit 067cd84bc393fd3f6ebc7681b41f01f06a06f91f
1 parent
70811f90
Exists in
master
and in
22 other branches
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 | 571 | env = Environment.default |
| 572 | 572 | env.stubs(:enabled?).with(:show_balloon_with_profile_links_when_clicked).returns(true) |
| 573 | 573 | stubs(:environment).returns(env) |
| 574 | - person = Person.new | |
| 574 | + person = Person.new identifier: 'person' | |
| 575 | 575 | person.stubs(:url).returns('url for person') |
| 576 | 576 | person.stubs(:public_profile_url).returns('url for person') |
| 577 | 577 | links = links_for_balloon(person) |
| ... | ... | @@ -582,7 +582,7 @@ class ApplicationHelperTest < ActionView::TestCase |
| 582 | 582 | env = Environment.default |
| 583 | 583 | env.stubs(:enabled?).with(:show_balloon_with_profile_links_when_clicked).returns(true) |
| 584 | 584 | stubs(:environment).returns(env) |
| 585 | - community = Community.new | |
| 585 | + community = Community.new identifier: 'comm' | |
| 586 | 586 | community.stubs(:url).returns('url for community') |
| 587 | 587 | community.stubs(:public_profile_url).returns('url for community') |
| 588 | 588 | links = links_for_balloon(community) |
| ... | ... | @@ -593,7 +593,7 @@ class ApplicationHelperTest < ActionView::TestCase |
| 593 | 593 | env = Environment.default |
| 594 | 594 | env.stubs(:enabled?).with(:show_balloon_with_profile_links_when_clicked).returns(true) |
| 595 | 595 | stubs(:environment).returns(env) |
| 596 | - enterprise = Enterprise.new | |
| 596 | + enterprise = Enterprise.new identifier: 'coop' | |
| 597 | 597 | enterprise.stubs(:url).returns('url for enterprise') |
| 598 | 598 | enterprise.stubs(:public_profile_url).returns('url for enterprise') |
| 599 | 599 | stubs(:catalog_path) | ... | ... |