1 parent b413582 commit 89c9feeCopy full SHA for 89c9fee
1 file changed
spec/views/api/v2/error.json.jbuilder_spec.rb
@@ -8,7 +8,7 @@
8
@code = [200, 400, 404, 500].sample
9
@errors = [Faker::Lorem.sentence, Faker::Lorem.sentence]
10
11
- assign :payload, { message: @errors }
+ assign :payload, { errors: @errors }
12
13
@resp = OpenStruct.new(status: @code)
14
@req = Net::HTTPGenericRequest.new('GET', nil, nil, @url)
0 commit comments