On Mon, Apr 28, 2008 at 8:23 AM, jyrppa
<jyrppa-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:>
> I have following method in my controller:
>
> def method_x
> ...
> render :inline=>''<%= auto_complete_result(@messages,
"hobby")%>''
> end
>
> How can I verify in my controller spec that render :inline is called
> with the parameter given above ?
In the example in your controller spec:
controller.expect_render(:inline =>
whatever_result_string_you_expect_based_on_case)
--
Rick DeNatale
My blog on Ruby
http://talklikeaduck.denhaven2.com/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---