[noosfero/noosfero][master] Fix functional tests related to private profiles
Antonio Terceiro
gitlab at gitlab.com
Mon Mar 23 19:40:55 BRT 2015
Antonio Terceiro pushed to master at Noosfero / noosfero
Commits:
65108142 by Antonio Terceiro at 2015-03-23T19:40:32Z
Fix functional tests related to private profiles
- - - - -
2 changed files:
- test/functional/contact_controller_test.rb
- test/functional/events_controller_test.rb
Changes:
=====================================
test/functional/contact_controller_test.rb
=====================================
--- a/test/functional/contact_controller_test.rb
+++ b/test/functional/contact_controller_test.rb
@@ -131,7 +131,7 @@ class ContactControllerTest < ActionController::TestCase
post :new, :profile => community.identifier
assert_response :forbidden
- assert_template :access_denied
+ assert_template :private_profile
end
should 'not show send e-mail page to non members of invisible community' do
=====================================
test/functional/events_controller_test.rb
=====================================
--- a/test/functional/events_controller_test.rb
+++ b/test/functional/events_controller_test.rb
@@ -60,7 +60,7 @@ class EventsControllerTest < ActionController::TestCase
post :events, :profile => community.identifier
assert_response :forbidden
- assert_template :access_denied
+ assert_template :private_profile
end
should 'not show events page to non members of invisible community' do
View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/65108142747071a27750188eb03b8c15bf003610
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20150323/f362cc99/attachment.html>
More information about the Noosfero-dev
mailing list