[rspec-devel] Calls to render and redirect in controllers should return true (rspec-on-rails)

Steve Tooke steve.tooke at gmail.com
Wed Nov 29 10:20:05 EST 2006


I think I've come across a small bug which causes the "do and return"
pattern to fail with render or redirect_to inside an controller
action.

e.g.

class MyController < ApplicationController

def show_404
    render( :file => "#{RAILS_ROOT}/public/404.html",
            :status => "404 Not Found")
  end
end


More information about the rspec-devel mailing list