Re: [rspec-users] Testing forms

2010-09-18 Thread David Chelimsky
On Sep 18, 2010, at 7:01 AM, Brennon Bortz wrote: > I'm testing a view that renders a form to edit an object. I'd like to test > that the form correctly populates the form with the object's attributes' > current values. I tried several variations on mock_model and stub_model in > order to mai

[rspec-users] Testing forms

2010-09-18 Thread Brennon Bortz
I'm testing a view that renders a form to edit an object. I'd like to test that the form correctly populates the form with the object's attributes' current values. I tried several variations on mock_model and stub_model in order to maintain view/model separation--for instance: require "spec_h