the mock would work too, but you're right it
is messy. I was wondering if there was something built in.
Time to redesign!
> From: "John D. Hume" <[EMAIL PROTECTED]>
> Reply-To: rspec-users
> Date: Wed, 4 Jun 2008 10:50:45 -0400
> To: rspec-users
> Subject:
On Wed, Jun 4, 2008 at 9:06 AM, Matthew Lins <[EMAIL PROTECTED]> wrote:
> I realize I could do this differently and just do a should_receive on the
> OrderItem, looking for '+=' or something, but that doesn't feel right.
I know this isn't what you're looking for, but note that whether you do:
it
I'm developing a rails application. I have an Order model that has_many
OrderItems.
I mocked the OrderItem model in my Order specs using mock_model. I thought
I should focus my specs on each model and always mock associated models.
In my Order model I need a way to merge OrderItems which have t