Skip to content

Commit

Permalink
modify test case
Browse files Browse the repository at this point in the history
  • Loading branch information
Tooyosi committed Oct 14, 2024
1 parent ab9d626 commit 37cb2f9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/controllers/reducers_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,14 @@
expect(workflow.reducers.first.filters['extractor_keys']).to eq(['test'])
end

it 'saves extractor_keys as an array' do
nested_reducer_params[:extractor_keys] = 'test'
it 'saves extractor_keys in inputted format' do
nested_reducer_params[:filters][:extractor_keys] = '[\'test\']'
post :create, params: {
workflow_id: workflow.id,
reducer: nested_reducer_params
}, format: :json

expect(workflow.reducers.first.filters['extractor_keys']).to eq(['test'])
expect(workflow.reducers.first.filters['extractor_keys']).to eq('[\'test\']')
end

it 'jsonifies extractor_keys' do
Expand Down

0 comments on commit 37cb2f9

Please sign in to comment.