Re: [rspec-users] how can this pass?

2009-02-10 Thread Sergio Bayona
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

Re: [rspec-users] how can this pass?

2009-02-09 Thread Sergio Bayona
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

Re: [rspec-users] how can this pass?

2009-02-08 Thread Sergio Bayona
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

[rspec-users] how can this pass?

2009-02-08 Thread Sergio Bayona
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