mercredi 21 juin 2017

Using rspec to test if url is redirect other specific url

I want to write a test that verifies that a url is redirecting to a different one.

For example:

http://localhost:3000/foobar+baz/bar+boo

to

http://localhost:3000?tools=foobar+baz&sources=bar+boo


Using RSpec I can't seem to find a way to do this. Any suggestions?

Aucun commentaire:

Enregistrer un commentaire