#294 √ invalid
Brian Terlson

Controller examples fail when calling render

Reported by Brian Terlson | February 16th, 2008 @ 05:05 AM

When running controller specs, I am getting failures all over the place whenever I called render :action => 'some_action'. The error it is throwing was "You called render with invalid options : actionsome_action". Turns out this is happening due to the extra_options hash being nil, which rails (at least, edge rails) doesn't like. A stack trace seems to indicate that it's nil due to ControllerExampleGroup::ControllerInstanceMethods::render defaulting it's deprecated_status parameter to nil instead of an empty hash as Rails' code does. This is line 170 in the CURRENT revision. Changing this function to set the empty hash as a default value fixes the problem.

Comments and changes to this ticket

  • David Chelimsky

    David Chelimsky February 16th, 2008 @ 05:56 AM

    • → State changed from “new” to “invalid”
    • → Assigned user changed from “” to “David Chelimsky”

    This is already fixed in trunk. If you're using edge rails, you gotta use RSpec's trunk.

Please Login or create a free account to add a new comment.

You can update this ticket by sending an email to from your email client. (help)

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Behaviour Driven Development for Ruby.

Shared Ticket Bins

People watching this ticket