[rspec-devel] [ rspec-Bugs-10297 ] Controller Specs - assigns method does not use the controller's assigns hash

noreply at rubyforge.org noreply at rubyforge.org
Sun Apr 22 22:41:30 EDT 2007


Bugs item #10297, was opened at 2007-04-22 19:41
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=3149&aid=10297&group_id=797

Category: rails plugin
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Brian Takita (btakita)
Assigned to: Nobody (None)
Summary: Controller Specs - assigns method does not use the controller's assigns hash

Initial Comment:
The assigs method compares against instance variables in the controller.

In ActionController, there is an assigns hash. If a key in the assigns hash is set, that object is sent to the view, even though there is no instance variable with that name.

See ActionController::Base#add_variables_to_assigns.


----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=3149&aid=10297&group_id=797


More information about the rspec-devel mailing list