Skip to content

Commit 9c32ac8

Browse files
Make the new spec pass
1 parent 43a7c8c commit 9c32ac8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/jsonapi_spec_helpers/helpers.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def json_ids(integers = false)
5656

5757
def validation_errors
5858
@validation_errors ||= {}.tap do |errors|
59-
return if json['errors'].nil?
59+
return errors if json['errors'].nil?
6060
json['errors'].each do |e|
6161
attr = e['meta']['attribute'].to_sym
6262
message = e['meta']['message']

0 commit comments

Comments
 (0)