Skip to content

Commit d46f3da

Browse files
committed
Print all validation errors in live_content_spec
The errors reported by RSpec are truncated. It's useful to see all of them when there are any so you don't need to rerun the tests after addressing each one
1 parent 025caa9 commit d46f3da

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

spec/integration/graphql/live_content_spec.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@
3838
parsed_response = JSON.parse(response.body)
3939
errors = JSON::Validator.fully_validate(schema, parsed_response)
4040

41+
if errors.present?
42+
puts schema_name
43+
errors.each(&method(:puts))
44+
end
45+
4146
expect(errors).to eql([])
4247
end
4348
end

0 commit comments

Comments
 (0)