[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:56:41 EDT 2007


Bugs item #10297, was opened at 2007-04-23 02: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.


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

>Comment By: David Chelimsky (dchelimsky)
Date: 2007-04-23 02:56

Message:
I don't understand the problem. Can you submit an example that is behaving incorrectly?

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

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