Glad You're Ready. Let's Get Started!

Let us know how we can contact you.

Thank you!

We'll respond shortly.

Standup 3/26/2009: Testing Request Headers When Request Object Is Frozen

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.

  1. R. Potter says:

    #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.


Post a Comment

Your Information (Name required. Email address will not be displayed with comment.)

* Copy This Password *

* Type Or Paste Password Here *