[Rspec-users] RSpec, REST and different formats

Jeff Dean jeff at jefdean.com
Sat Oct 28 03:37:03 EDT 2006


Is anyone using RSpec with RESTful rails apps?  In my rails controllers I
check request.respond_to? and render different views accordingly.

I noticed that the get method in the rails plugin doesn't accept headers:

controller_mixin.rb line 92
def get(action, parameters = nil)
        @request.env['REQUEST_METHOD'] = 'GET'
        process action, parameters
end

Has anyone found a way around this?

Jeff
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rspec-users/attachments/20061028/9c428c7c/attachment.html 


More information about the Rspec-users mailing list