render :inline expectation in controller spec

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)