I'm actually not sure whether this is a bug with webmock or with addressable, but it seems that unless we specify addressable 2.2.4 in our Gemfile, our regex request stubs cause an error (this is with Ruby 1.9.2, Rails 3.0.3, RSpec 2.4.0, Webmock 1.6.2).
In our before(:each) block causes this error in our specs:
can't modify frozen object
This only happens for requests stubbed with a regex, and only happens with addressable 2.2.5. Not sure if maybe this "less frozen, more speed" addressable commit has anything to do with it.
It looks like this is a bug in addressable:
Sure enough. That pull request from addressable solved it. Thanks!