*Problem*
I need to send some data to a path in the encoding 
format x-www-form-urlencodedand by using Net::HTTP I am doing that from the 
spec file. But as Net::HTTP requires host and port for their operation , 
what Can I do ?

*Context *
I have described my problem In this stack overflow question please have a 
look 
https://stackoverflow.com/questions/68616413/how-to-get-host-and-port-configuration-for-test-environment-in-rspec-3-10-rails
Also I need to implement the test for this , is there any alternative way 
to do that ?
https://github.com/CircuitVerse/CircuitVerse/blob/lms-lti/app/controllers/lti_controller.rb

-- 
You received this message because you are subscribed to the Google Groups 
"rspec" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rspec+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rspec/18133026-5cb2-42b1-8485-06740010581en%40googlegroups.com.

Reply via email to