[rspec-users] RailsStory - lessons learned

s.ross cwdinfo at gmail.com
Wed Oct 17 14:37:17 EDT 2007


> The welcome controller fails when the HTTP_USER_AGENT is missing.

Alvin--

Try:

request.stub!(:user_agent).and_return('Mozilla')



More information about the rspec-users mailing list