Publisher review:Custom headers in Rails tests - From time to time you may need to set headers in your functional tests that aren't supported by the @request object. From time to time you may need to set headers in your functional tests that aren't supported by the @request object.
I had to set up my request with Basic authentication. Add an extension to the TestRequest class in the test/test_helper.rb file, then set values as r TestRequn your functional test.
Custom headers in Rails tests is a Ruby script for Snippets scripts design by rodfrey.
It runs on following operating system: Windows / Linux.
Operating system:Windows / Linux