[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
Mon Apr 23 00:23:19 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: Closed
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-22 19: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