Re: [rspec-users] How to stub a has_many relationship in Rails 2.3.5

2010-03-25 Thread David Chelimsky
On Wed, Mar 24, 2010 at 10:39 AM, Ben Fyvie wrote: > We have a test that has been working find until we upgraded to rails 2.3.5. > I’m not too familiar with mocks/stubs so maybe there is an easy solution. > > Here is a simple example of our scenario. > > Class Person < ActiveRecord::Base >   has_m

[rspec-users] How to stub a has_many relationship in Rails 2.3.5

2010-03-24 Thread Ben Fyvie
We have a test that has been working find until we upgraded to rails 2.3.5. I'm not too familiar with mocks/stubs so maybe there is an easy solution. Here is a simple example of our scenario. Class Person < ActiveRecord::Base has_many :aliases, :dependent => :nullify before_destroy