Thanks Alex, you are the best ;)
On Thursday, December 13, 2012 11:38:34 PM UTC+2, Alex Chaffee wrote:
>
> 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]<javascript:>>
> 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] <javascript:>.
> To unsubscribe from this group, send email to
> [email protected]<javascript:>
> .
> 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].
To view this discussion on the web visit
https://groups.google.com/d/msg/rspec/-/oDPYHQip4kUJ.
For more options, visit https://groups.google.com/groups/opt_out.