Commit fbfc3be6da94865aa50f2fe2c2eafad7c0712bd3
1 parent
60e2222d
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
site_tour: restrict access to plugin settings
Showing
2 changed files
with
2 additions
and
3 deletions
Show diff stats
plugins/site_tour/controllers/site_tour_plugin_admin_controller.rb
plugins/site_tour/test/functional/site_tour_plugin_admin_controller_test.rb
| @@ -4,8 +4,7 @@ class SiteTourPluginAdminControllerTest < ActionController::TestCase | @@ -4,8 +4,7 @@ class SiteTourPluginAdminControllerTest < ActionController::TestCase | ||
| 4 | 4 | ||
| 5 | def setup | 5 | def setup |
| 6 | @environment = Environment.default | 6 | @environment = Environment.default |
| 7 | - @profile = create_user('profile').person | ||
| 8 | - login_as(@profile.identifier) | 7 | + login_as(create_admin_user(@environment)) |
| 9 | end | 8 | end |
| 10 | 9 | ||
| 11 | attr_reader :environment | 10 | attr_reader :environment |