Skip to content

Fix handling ActionDispatch::TestResponse in response validation#224

Merged
ahx merged 2 commits intomainfrom
fix-rails-test
Jan 28, 2024
Merged

Fix handling ActionDispatch::TestResponse in response validation#224
ahx merged 2 commits intomainfrom
fix-rails-test

Conversation

@ahx
Copy link
Copy Markdown
Owner

@ahx ahx commented Jan 28, 2024

I noticed that manual response validation broke in Rails' request spec.

NoMethodError:
       undefined method `each' for "[]":String

This is because ActionDispatch::TestResponse#body returns a String.
This change should fix that.

@ahx ahx marked this pull request as ready for review January 28, 2024 00:48
@ahx ahx merged commit d8560c5 into main Jan 28, 2024
@ahx ahx deleted the fix-rails-test branch January 28, 2024 01:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant