ruby on rails - How to assert HTTP request is made with correct URI when using VCR and WebMock? -
I am checking Ruby on Rail projects using WebMock and VCR. I want to claim that the request is requested for the right host, but I can not find an example of doing this. Here are some foxy codes I'm trying to do:
VCR.use_cassette ('example.com request') than subject.domain = 'example.com' {subject.get ('/ some')} For make_a_get_request_ ('http://example.com/something') termination
Comments
Post a Comment