diff options
author | Rémy Coutable <remy@rymai.me> | 2018-11-15 15:32:17 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2018-11-15 18:44:22 +0300 |
commit | 47dd7d0bbed879625f6ff19960ff390956e7c331 (patch) | |
tree | a42e4db2061828d8cc41c8e6d877a43943930ea0 /spec/services | |
parent | 84db49ea0c6d18a12efa7268e06d9611ca267fd7 (diff) |
Use gitlab-default_value_with Rails 5
This forks live at https://github.com/gitlabhq/default_value_for/tree/69-fix-action_controller-parameters-handling
and fixes an issue where default_value_for wouldn't handle
`ActionController::Parameters` correctly with Rails 5.
This fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/54093.
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'spec/services')
-rw-r--r-- | spec/services/users/build_service_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/services/users/build_service_spec.rb b/spec/services/users/build_service_spec.rb index 17bc880dec5..b7b9817efdb 100644 --- a/spec/services/users/build_service_spec.rb +++ b/spec/services/users/build_service_spec.rb @@ -8,7 +8,7 @@ describe Users::BuildService do context 'with an admin user' do let(:admin_user) { create(:admin) } - let(:service) { described_class.new(admin_user, params) } + let(:service) { described_class.new(admin_user, ActionController::Parameters.new(params).permit!) } it 'returns a valid user' do expect(service.execute).to be_valid |