Sha256: 1d15488da3a77db4fd8b65a26fad92aa7316b8a132e8c9b9f300e62923f6a5a5
Contents?: true
Size: 1019 Bytes
Versions: 34
Compression:
Stored size: 1019 Bytes
Contents
Given(/^a fieldset exists$/) do @fieldset = DynamicFieldsets::Fieldset.create( :name => "Fingerprint Form", :nkey => "fingerprint_form", :description => "A test fingerprint form") end Then(/^I should see that fieldset listed$/) do @fieldset = DynamicFieldsets::Fieldset.last page.should have_content(@fieldset.name) page.should have_content(@fieldset.nkey) page.should have_content(@fieldset.description) end Then(/^I should see the data for that fieldset$/) do @fieldset = DynamicFieldsets::Fieldset.last page.should have_content(@fieldset.name) page.should have_content(@fieldset.nkey) page.should have_content(@fieldset.description) end Given /^I record the data for that fieldset$/ do @fieldset = DynamicFieldsets::Fieldset.last end # must call record the data for this to work Then /^I should not see that fieldset listed$/ do page.should_not have_content(@fieldset.name) page.should_not have_content(@fieldset.nkey) page.should_not have_content(@fieldset.description) end
Version data entries
34 entries across 34 versions & 1 rubygems