[mocha-developer] using expects with [] (for Hash and Array)

Jeremy Burks jeremy.burks at gmail.com
Wed Nov 15 11:23:47 EST 2006

First off, thanks for the great library.

Is there a way setup expects with this:

    runtime_options[:property] = properties_option_string

or do i have to use:

    runtime_options.store(:property, properties_option_string)

which results in this:

    runtime_options.expects(:store).with(:property, 'prop1=1')

Thanks for your help.

More information about the mocha-developer mailing list