at the moment I do it this way, hiding the complexity out of the steps:

Then /^I should see the people search form$/ do
  people_search_form_exists
end

Then /^I should not see the people search form$/ do
  people_search_form_exists "not"
end

and then the method:

def people_search_form_exists negation = ""
  neg = "_not" unless negation.blank?
  response.send "should#{neg}".to_sym, have_tag('form#frmSearch')
end

this is a simple case, but what do you think about this? any blog post or so

cheers
joaquin

-- 
www.least-significant-bit.com
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to