[Git][noosfero/noosfero][master] layout-helper: fix broken tests

Victor Costa gitlab at mg.gitlab.com
Mon Mar 27 08:27:00 BRT 2017


Victor Costa pushed to branch master at Noosfero / noosfero


Commits:
d223a047 by Victor Costa at 2017-03-27T08:26:03-03:00
layout-helper: fix broken tests

- - - - -


1 changed file:

- test/unit/layout_helper_test.rb


Changes:

=====================================
test/unit/layout_helper_test.rb
=====================================
--- a/test/unit/layout_helper_test.rb
+++ b/test/unit/layout_helper_test.rb
@@ -6,12 +6,14 @@ class LayoutHelperTest < ActionView::TestCase
   should 'append logged-in class in body when user is logged-in' do
     expects(:logged_in?).returns(true)
     expects(:profile).returns(nil).at_least_once
+    expects(:environment).returns(fast_create(Environment)).at_least_once
     assert_includes body_classes.split, 'logged-in'
   end
 
   should 'not append logged-in class when user is not logged-in' do
     expects(:logged_in?).returns(false)
     expects(:profile).returns(nil).at_least_once
+    expects(:environment).returns(fast_create(Environment)).at_least_once
     assert_not_includes body_classes.split, 'logged-in'
   end
 



View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/d223a047d38a79f3d5c55a6b948147b607b4d5ea
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20170327/32d91a14/attachment.html>


More information about the Noosfero-dev mailing list