On 15/11/06, <b class="gmail_sendername">Jeremy Burks</b> &lt;<a href="mailto:jeremy.burks@gmail.com">jeremy.burks@gmail.com</a>&gt; 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;">
First off, thanks for the great library.<br><br>Is there a way setup expects with this:<br><br>&nbsp;&nbsp;&nbsp;&nbsp;runtime_options[:property] = properties_option_string<br><br>or do i have to use:<br><br>&nbsp;&nbsp;&nbsp;&nbsp;runtime_options.store(:property, properties_option_string)
<br><br>which results in this:<br><br>&nbsp;&nbsp;&nbsp;&nbsp;runtime_options.expects(:store).with(:property, 'prop1=1')<br></blockquote></div><br clear="all">[]= is just another method, so you should be able to do something like this...<br>
<br>runtime_options.expects(:[]=).with(:property, 'prop1=1')<br><br>-- <br>James.<br><a href="http://blog.floehopper.org">http://blog.floehopper.org</a>