mercredi 22 juin 2016

Rspec: How do I stub out a method call followed hash look up

In short I have the following:

request.env['HTTP_REFERER']

And want to stub out the 'request.env' but only when followed by the hash look up.

Any thoughts on how to do this?

Aucun commentaire:

Enregistrer un commentaire