This project is archived and is in readonly mode.
ActiveResource::HttpMock.respond_to should not reset! by default
Reported by johnf | September 16th, 2009 @ 09:41 AM
I'm using cucumber for testing and using ActiveResource for alot of the backends.
So I might have
Scenario: List a clients Services
Given the client "inodes" And the service "webhosting" owned by
"inodes"
client and service are both ActiveResource models which I need to mock. So I need to call ActiveResource::HttpMock.respond_to twice. Once in the client step and again in the service step.
This doesn't work though since the very first line of respond_to is reset! which resets all the prior entries.
Maybe we need an add_respond_to or move the reset all together and have it called during tear down
Or maybe some other way I haven't thought of
Comments and changes to this ticket
-
Rohit Arondekar October 6th, 2010 @ 06:43 AM
- State changed from new to stale
- Importance changed from to
Marking ticket as stale. If this is still an issue please leave a comment with suggested changes, creating a patch with tests, rebasing an existing patch or just confirming the issue on a latest release or master/branches.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>