Class ThoughtBot::Shoulda::Controller::ClassMethods::ResourceOptions::ActionOptions
In: lib/shoulda/controller_tests/controller_tests.rb
Parent: Object

Configuration options for the create, update, destroy actions under should_be_restful

Attributes

flash  [RW]  String or Regexp describing a value expected in the flash. Will match against any flash key.

Defaults:

destroy:/removed/
create:/created/
update:/updated/
params  [RW]  Hash describing the params that should be sent in with this action.
redirect  [RW]  String evaled to get the target of the redirection. All of the instance variables set by the controller will be available to the evaled code.

Example:

  resource.create.redirect  = "user_url(@user.company, @user)"

Defaults to a generated url based on the name of the controller, the action, and the resource.parents list.

[Validate]