Sha256: aff48f20ff9a9ff68784f393a59492175eb3d6b19e7ed9455b9af6870a6c562d
Contents?: true
Size: 860 Bytes
Versions: 16
Compression:
Stored size: 860 Bytes
Contents
Given /^there are no People in the system$/ do Person.all.each do |p| p.destroy end end Given /^a person with a complete multipart form exists$/ do p = Person.create(:name => "Jeremiah") ipf = MultipartForm::InProgressForm.create( :form_subject_type => "Person", :form_subject_id => p.id, :form_name => "hire_form", :completed => true, :last_completed_step => "job_info_update") end Given /^a person with an incomplete multipart form exists$/ do p = Person.create(:name => "Jeremiah") ipf = MultipartForm::InProgressForm.create( :form_subject_type => "Person", :form_subject_id => p.id, :form_name => "hire_form", :completed => false, :last_completed_step => "person_info_update") end Then(/^that person's information should have updated$/) do p = Person.last p.name.should == "Ethan" end
Version data entries
16 entries across 16 versions & 1 rubygems