Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/fix_coerce_nil_array' into fix_c…
Browse files Browse the repository at this point in the history
…oerce_nil_array
  • Loading branch information
ericproulx committed Apr 20, 2020
2 parents fc46dd7 + 65d3e38 commit 97473f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/grape/validations/validators/regexp_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def app
expect(last_response.status).to eq(200)
end

it 'refused nil instead of array' do
it 'refuses nil instead of array' do
get '/custom_message/regexp_with_array', names: nil
expect(last_response.status).to eq(400)
expect(last_response.body).to eq('{"error":"names can\'t be nil"}')
Expand Down

0 comments on commit 97473f1

Please sign in to comment.