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 ?
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 ?
On Mon, Apr 28, 2008 at 8:23 AM, jyrppa [email protected] wrote:
I have following method in my controller:
def method_x
…
render :inline=>‘<%= auto_complete_result(@messages, “hobby”)%>’
endHow 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/
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs