@payload[:errors]
error.json.jbuilder
1 parent 6d8550e commit b413582Copy full SHA for b413582
2 files changed
app/views/api/v2/error.json.jbuilder
@@ -3,5 +3,5 @@
3
json.partial! 'api/v2/standard_response'
4
5
# json.items []
6
-json.message @payload[:message]
+json.errors @payload[:errors]
7
json.details @payload[:details]
spec/views/api/v2/error.json.jbuilder_spec.rb
@@ -23,7 +23,7 @@
23
end
24
25
it ':errors contains an array of error messages' do
26
- expect(@json[:message]).to eql(@errors)
+ expect(@json[:errors]).to eql(@errors)
27
28
29
0 commit comments