Skip to content

Commit

Permalink
Remove puts for debug in the test
Browse files Browse the repository at this point in the history
  • Loading branch information
mopp committed Feb 6, 2025
1 parent e4dd709 commit c18a4e7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion lib/committee/schema_validator/hyper_schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def response_validate(status, headers, response, _test_method = false)
data = {}
unless full_body.empty?
parse_to_json = if validator_option.parse_response_by_content_type
content_type_key = headers.keys.detect { |k| k.casecmp?('Content-Type') }
content_type_key = headers.keys.detect { |k| k.casecmp?('Content-Type') }
headers.fetch(content_type_key, nil)&.start_with?('application/json')
else
true
Expand Down
1 change: 0 additions & 1 deletion test/middleware/response_validation_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ def app
}

get "/apps"
puts(last_response.body)
assert_equal 200, last_response.status
end

Expand Down

0 comments on commit c18a4e7

Please sign in to comment.