search for: test_variable_assign

Displaying 1 result from an estimated 1 matches for "test_variable_assign".

Did you mean: test_variable_assigned
2006 Oct 19
1
Question about variable assignments/scoping after render call
I''ve got a question about how variables are made available to templates. We have a test that looks something like this: def test_variable_assigned xhr :get, :do_stuff, :id => 1 assert_not_nil assigns(:thing) end And our app code looks like this: class SuperClass < ActionController def do_stuff @parent_model = ParentModel.find(params[:id]) render :template => ''superclass/do_stuff'' end end...