[rspec-users] 2nd attempt at mocking and stubbing

Mark Wilden mark at mwilden.com
Sat Sep 6 18:25:59 EDT 2008


>
> 203
> 204       map.should_receive(:add_marker).with mock_property1.address,
> mock_property1.latitude, mock_property1.longitude, marker1_contents
> 205       map.should_receive(:add_marker).with mock_property2.address,
> mock_property2.latitude, mock_property2.longitude, marker2_contents
>

It looks like this is copying certain property properties to the map. Would
it be better for the map to simply hold a reference to the property?

///ark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20080906/d2ed751d/attachment.html>


More information about the rspec-users mailing list