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