[rspec-users] Mock_model not recognizing act_as_mappable

2012-08-03 Thread Steve Loo
I am using mock_model in my tests, and I encountered a situation where my stub is failing. Here's the scenario: Controller: @locations = Location.al(:bounds=bounds)l @locations.sort_by_distance_from([bounds.center.lat,bounds.center.lng]) Rspec: @location = mock_model(Location)

Re: [rspec-users] Mock_model not recognizing act_as_mappable

2012-08-03 Thread David Chelimsky
On Fri, Aug 3, 2012 at 9:33 AM, Steve Loo isig...@gmail.com wrote: I am using mock_model in my tests, and I encountered a situation where my stub is failing. You want stub_model for this case because you're counting on functionality that is built into your real model. See