Topic: Dry Cucumber step def
i find myself doing allot of
i fill the XXXX form properly
and
i fill the xxx with missing field
When /^I fill in the Staff form properly$/ do
@staff_f = Fabricate(:staff)
fill_in('staff_first_name', :with =>@staff_f.first_name)
fill_in('staff_last_name', :with => @staff_f.last_name)
end
When /^I fill in the location form with out a last name$/ do
@staff_f = Fabricate(:staff)
fill_in('staff_first_name', :with =>@staff_f.first_name)
fill_in('staff_last_name', :with => "")
end
but how can i call the I fill in the Staff form properly
and then i remove the last name
Thanks