Re: [rspec-users] Testing multi-model-form views in Rails 2.3.3 and RSpec 1.2.7

2009-09-05 Thread Christoph Schiessl
Well, I'm still looking for a solution. Best regards, Christoph On Sep 5, 2009, at 5:32 PM, Yury Kotlyarov wrote: I have just the same problem. Any suggestion? TIA, Yury Christoph Schiessl wrote: I've created a small application to demonstrate the problem in more detail: http://github.com

Re: [rspec-users] Testing multi-model-form views in Rails 2.3.3 and RSpec 1.2.7

2009-09-05 Thread Yury Kotlyarov
I have just the same problem. Any suggestion? TIA, Yury Christoph Schiessl wrote: > I've created a small application to demonstrate the problem in more > detail: > > http://github.com/cs/nested_attributes_spec_demo > > Just clone it, migrate the sqlite database and run `rake spec`. You'll > see

Re: [rspec-users] Testing multi-model-form views in Rails 2.3.3 and RSpec 1.2.7

2009-08-23 Thread Christoph Schiessl
I've created a small application to demonstrate the problem in more detail: http://github.com/cs/nested_attributes_spec_demo Just clone it, migrate the sqlite database and run `rake spec`. You'll see 1 failing and 1 succeeding spec. The failing one uses Mocking to the view. The succeeding

Re: [rspec-users] Testing multi-model-form views in Rails 2.3.3 and RSpec 1.2.7

2009-08-23 Thread Matt Wynne
On 23 Aug 2009, at 10:51, Christoph Schiessl wrote: I have two models in a has_many relationship. The parent model (Invoice) accepts the attributes for it's children (InvoiceItem). The models and the associated controller (InvoicesController) are absolutely standard stuff. This is the significa

[rspec-users] Testing multi-model-form views in Rails 2.3.3 and RSpec 1.2.7

2009-08-23 Thread Christoph Schiessl
I have two models in a has_many relationship. The parent model (Invoice) accepts the attributes for it's children (InvoiceItem). The models and the associated controller (InvoicesController) are absolutely standard stuff. This is the significant part of the model code: class Invoice < ActiveReco