noosfero | application_helper: fix tests
Bráulio Bhavamitra
gitlab at gitlab.com
Mon Mar 9 21:25:02 BRT 2015
Bráulio Bhavamitra pushed to refs/heads/master at <a href="https://gitlab.com/noosfero/noosfero">Noosfero / noosfero</a>
Commits:
<a href="https://gitlab.com/noosfero/noosfero/commit/067cd84bc393fd3f6ebc7681b41f01f06a06f91f">067cd84b</a> by Braulio Bhavamitra
application_helper: fix tests
- - - - -
Changes:
=====================================
test/unit/application_helper_test.rb
=====================================
--- a/test/unit/application_helper_test.rb
+++ b/test/unit/application_helper_test.rb
@@ -571,7 +571,7 @@ class ApplicationHelperTest < ActionView::TestCase
env = Environment.default
env.stubs(:enabled?).with(:show_balloon_with_profile_links_when_clicked).returns(true)
stubs(:environment).returns(env)
- person = Person.new
+ person = Person.new identifier: 'person'
person.stubs(:url).returns('url for person')
person.stubs(:public_profile_url).returns('url for person')
links = links_for_balloon(person)
@@ -582,7 +582,7 @@ class ApplicationHelperTest < ActionView::TestCase
env = Environment.default
env.stubs(:enabled?).with(:show_balloon_with_profile_links_when_clicked).returns(true)
stubs(:environment).returns(env)
- community = Community.new
+ community = Community.new identifier: 'comm'
community.stubs(:url).returns('url for community')
community.stubs(:public_profile_url).returns('url for community')
links = links_for_balloon(community)
@@ -593,7 +593,7 @@ class ApplicationHelperTest < ActionView::TestCase
env = Environment.default
env.stubs(:enabled?).with(:show_balloon_with_profile_links_when_clicked).returns(true)
stubs(:environment).returns(env)
- enterprise = Enterprise.new
+ enterprise = Enterprise.new identifier: 'coop'
enterprise.stubs(:url).returns('url for enterprise')
enterprise.stubs(:public_profile_url).returns('url for enterprise')
stubs(:catalog_path)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20150310/d86a14a1/attachment.html>
More information about the Noosfero-dev
mailing list