I have an internal system that has a rails controller action that
needs to behave differently based on browser type reported by
request.env['HTTP_USER_AGENT']

But I can't find a way to stub! mock or set this setting from within a spec.

Looked through Test::Unit and can't find a straight forward way in there either.

Anyone had any luck with this?

Mikel
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to