Pat Maddox wrote:
> On Mon, Feb 9, 2009 at 10:18 PM, Sergio Bayona
> wrote:
>>>> >>
>> other is an AR object. But, shouldn't it return the mock property?
>> [])
>>respond_to do |format|
>> got: #> nil, zip: nil, uasap: nil, tax_num
Mark Wilden wrote:
> On Sun, Feb 8, 2009 at 6:54 PM, Sergio Bayona
> wrote:
>
>> > On Mon, Feb 9, 2009 at 2:35 AM, Sergio Bayona
>> > wrote:
>> >>
>> >>assigns[:property].should equal(mock_property)
>> >> 1 example, 0 failu
Aslak Hellesøy wrote:
> On Mon, Feb 9, 2009 at 2:35 AM, Sergio Bayona
> wrote:
>>
>>assigns[:property].should equal(mock_property)
>> 1 example, 0 failures
>>
>>
>> why zero failures? more specifically, why would :non_existing_method
>> ret
how could this test pass?
I have:
class PropertiesController < ApplicationController
def show
@property = Property.non_existing_method #causes a method missing
error
end
end
describe PropertiesController do
def mock_property(stubs={})
@mock_property ||= mock_model(Property, stub