get :view_tub, :tub => "rubadub"
assigns[:tub].should == "rubadub"

("assigns" is Railsese for "controller instance variables that get ripped out 
if the controller and stuck into the view" and it's magically set in Request 
and Controller specs)

On Dec 13, 2012, at 2:23 AM, Alex Leasenco <[email protected]> wrote:

> def view_tub
>  @tub = params[:tub]
>  @back_to = view_path(@camp)
> end
> 
> Thanks
> Alex
> -- 
> You received this message because you are subscribed to the Google Groups 
> "rspec" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msg/rspec/-/-VuzWZqULH4J.
> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  

-- 
You received this message because you are subscribed to the Google Groups 
"rspec" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to