Re: [rspec-users] How to write view specs with multiple forms

2011-11-14 Thread David Chelimsky
On Nov 8, 2011, at 12:53 AM, emadridm wrote: > Hi guys, > > I don't know how to write an spec for a view template with two or more > forms. The follow content corresponds to the file named home.html.haml > > !!! 5 > = form_for(:session, :url => sessions_path) do |f| > .field >= f.label :ema

[rspec-users] How to write view specs with multiple forms

2011-11-14 Thread emadridm
Hi guys, I don't know how to write an spec for a view template with two or more forms. The follow content corresponds to the file named home.html.haml !!! 5 = form_for(:session, :url => sessions_path) do |f| .field = f.label :email = f.text_field :email .field = f.label :password