I am making a test in Rspec(rails), the test should return an error message of unprocessable_entity whenever I pass a password without a username or a username without a password.
The problem is when I run the test it gives me
ArgumentError:
Invalid HTTP status: :unprocessable_entity
But if I change the status to be 422 or unprocessable_content it normally works !!!
New contributor
Ahmed Ali is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.