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 | |
parent | c102f956d82cc389f3e1d13ad68564602e8ab78f (diff) |
Rails5 ActionController::ParameterMissing: param is missing or the value is empty: application_setting
-rw-r--r-- | changelogs/unreleased/rails5-fix-47805.yml | 6 | ||||
-rw-r--r-- | spec/controllers/admin/application_settings_controller_spec.rb | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/changelogs/unreleased/rails5-fix-47805.yml b/changelogs/unreleased/rails5-fix-47805.yml new file mode 100644 index 00000000000..8bd8ad5488c --- /dev/null +++ b/changelogs/unreleased/rails5-fix-47805.yml @@ -0,0 +1,6 @@ +--- +title: 'Rails5 ActionController::ParameterMissing: param is missing or the value is + empty: application_setting' +merge_request: 19763 +author: Jasper Maes +type: fixed 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 |