diff options
author | Jasper Maes <jaspermaes.jm@gmail.com> | 2018-06-13 18:48:27 +0300 |
---|---|---|
committer | Jasper Maes <jaspermaes.jm@gmail.com> | 2018-06-13 19:00:15 +0300 |
commit | 71e0d33e74fb5c571032be641130105fd3f6a4b6 (patch) | |
tree | 6ec95e2e2202049e1ca7b644168a5f620320d263 /spec/controllers/admin | |
parent | c102f956d82cc389f3e1d13ad68564602e8ab78f (diff) |
Rails5 ActionController::ParameterMissing: param is missing or the value is empty: application_setting
Diffstat (limited to 'spec/controllers/admin')
-rw-r--r-- | spec/controllers/admin/application_settings_controller_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/controllers/admin/application_settings_controller_spec.rb b/spec/controllers/admin/application_settings_controller_spec.rb index b4fc2aa326f..9d10d725ff3 100644 --- a/spec/controllers/admin/application_settings_controller_spec.rb +++ b/spec/controllers/admin/application_settings_controller_spec.rb @@ -73,7 +73,7 @@ describe Admin::ApplicationSettingsController do end it 'updates the restricted_visibility_levels when empty array is passed' do - put :update, application_setting: { restricted_visibility_levels: [] } + put :update, application_setting: { restricted_visibility_levels: [""] } expect(response).to redirect_to(admin_application_settings_path) expect(ApplicationSetting.current.restricted_visibility_levels).to be_empty |