author avatar

sachin.kabadi

Sat Feb 03 2024

While testing request spec in rails, configure host in your environment(development/test) :- Add below line in your "config/environment/test" file.

config.hosts << "www.example.com"