Re: [rspec-users] form action url example

2007-10-01 Thread sinclair bain
Living and learning ! Cheers for that David! Cheers! sinclair On 9/28/07, David Chelimsky <[EMAIL PROTECTED]> wrote: > > On 9/28/07, sinclair bain <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I have the following example: > > > > > > it 'should have a form with an action attribute' do > > r

Re: [rspec-users] form action url example

2007-09-28 Thread David Chelimsky
On 9/28/07, sinclair bain <[EMAIL PROTECTED]> wrote: > Hi, > > I have the following example: > > > it 'should have a form with an action attribute' do > response.should have_tag( "form[action=?]", > '/users/1/machines/1/trouble_tickets') > end > for a form like so: > > > <% form_for( :trou

[rspec-users] form action url example

2007-09-28 Thread sinclair bain
Hi, I have the following example: it 'should have a form with an action attribute' do response.should have_tag( "form[action=?]", '/users/1/machines/1/trouble_tickets') end for a form like so: <% form_for( :trouble_ticket, :url => { :action => 'create', :user_id => @