Skip to content

Commit

Permalink
[VI-1014] Remove permitted param spec from client config controller (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
bosawt authored Jan 24, 2025
1 parent 6727d9f commit 183837a
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions spec/controllers/sign_in/client_configs_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -113,20 +113,4 @@
end
end
end

describe 'permitted params' do
let(:client_config) { build(:client_config) }
let(:attributes) { client_config.attributes.symbolize_keys }

let(:expected_permitted_params) do
array_params, params = attributes.excluding(:id, :created_at, :updated_at)
.partition { |_, v| v.is_a?(Array) }
params.to_h.keys << array_params.to_h.transform_values { [] }
end

it 'returns the expected permitted params' do
expect(subject).to permit(*expected_permitted_params)
.for(:create, params: { client_config: attributes })
end
end
end

0 comments on commit 183837a

Please sign in to comment.