undefined method `last_response' #277

Closed
kangster opened this Issue Nov 30, 2010 · 3 comments

2 participants

@kangster

In this commit: 2233e5a

lib/rspec/rails/example/request_example_group.rb

The app instance method was moved over to the webrat block but the last_response method wasn't carried over with it. This breaks the request specs when using webrat. Should the last_response method be added back to the webrat block? Is a patch appropriate for this?

@dchelimsky
RSpec member

Got webrat working across request and controller specs

  • added --webrat flag for request controller generator
  • deprecated --webrat-matchers flag across generators
  • Closed by 617d675.
@dchelimsky
RSpec member

It went a bit deeper than just adding last_response. There were conflicts between :rack and :rails webrat modes, so the correct one needed to be configured in before hooks in request and controller specs.

@kangster

Thank you!!

@amatsuda amatsuda pushed a commit that referenced this issue Nov 15, 2011
@dchelimsky dchelimsky Got webrat working across request and controller specs
- added --webrat flag for request controller generator
- deprecated --webrat-matchers flag across generators
- Closes #277.
617d675
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment