Re: [rspec-users] Testing complex-form-example helpers

2011-07-18 Thread Sam Goldman
Patrick, The example I linked to does use nested attributes. See https://github.com/ryanb/complex-form-examples/blob/master/app/models/survey.rb for the model class which uses it. Sam On Mon, Jul 18, 2011 at 8:03 PM, Patrick J. Collins wrote: >> I am new to test-driven development and rspec, so

Re: [rspec-users] Testing complex-form-example helpers

2011-07-18 Thread Sam Goldman
Replies inline, below. On Mon, Jul 18, 2011 at 8:20 PM, Derek Prior wrote: >> One of the patterns I am trying to >> implement is from Ryan Bates' complex-form-examples[2]. Ryan's example >> doesn't have any tests, so I am trying to write tests for the code. > > He's updated that with a later epis

Re: [rspec-users] Testing complex-form-example helpers

2011-07-18 Thread Derek Prior
> I am new to test-driven development and rspec, so I am writing an > application[1] to practice. Me too, so the advice I offer below should be taken in that light. Less advice and more, "What I think I kind of figured out." > One of the patterns I am trying to > implement is from Ryan Bates' c

Re: [rspec-users] Testing complex-form-example helpers

2011-07-18 Thread Patrick J. Collins
> I am new to test-driven development and rspec, so I am writing an > application[1] to practice. One of the patterns I am trying to > implement is from Ryan Bates' complex-form-examples[2]. Ryan's example > doesn't have any tests, so I am trying to write tests for the code. Don't forget that the r