On 28/11/06, <b class="gmail_sendername">Francois Beausoleil</b> <<a href="mailto:francois.beausoleil@gmail.com">francois.beausoleil@gmail.com</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I would like to ascertain the following in a test case:<br><br>@template.expects(:content_tag).with(:fieldset, :__any_arguments__i_dont_care)<br><br>Is it possible to do so ? If so how ?</blockquote><div><br>It should be possible to do this as follows...
<br></div></div><br><span style="font-family: courier new,monospace;">@template.expects(:content_tag).with { |*params| params.first == :fieldset }</span><br><br>The <span style="font-family: courier new,monospace;">with()
</span> block should return <span style="font-family: courier new,monospace;">true</span> or <span style="font-family: courier new,monospace;">false</span> depending on whether the expectation should match.<br clear="all">
<br>-- <br>James.<br><a href="http://blog.floehopper.org">http://blog.floehopper.org</a>