Ask for Help
“How do you test request headers? The request object is frozen…”
The team is using rspec to test an OAuth implementation and needs better access to the request object.
- Possibly modify the request environment prior to running the test -or-
- Instantiate a new, non-frozen request object.
#dup the object. It’s closer to the real situation than your first option. It’s very close to the second option but, it ensure that you get a testable object with what should have the same internal state as the original.
–R
March 27, 2009 at 8:10 pm