Sha256: 8b011ca0be8aa510afa85054983a4168e2c40720ce9f12b0a3e4ed1f63a3a4b8

Contents?: true

Size: 748 Bytes

Versions: 21

Compression:

Stored size: 748 Bytes

Contents

Given /^I have no inquiries$/ do
  Inquiry.delete_all
end

Then /^I should have ([0-9]+) inquiries?$/ do |count|
  Inquiry.count.should == count.to_i
end

Given /^I have an? inquiry from "([^"]*)" with email "([^\"]*)" and message "([^\"]*)"$/ do |name, email, message|
  Inquiry.create(:name => name,
                 :email => email,
                 :message => message)
end

Given /^I have an? inquiry titled "([^"]*)"$/ do |title|
  Inquiry.create(:name => title,
                 :email => 'test@cukes.com',
                 :message => 'cuking ...',
                 :spam => false)

  Inquiry.create(:name => title,
                 :email => 'test@cukes.com',
                 :message => 'cuking ...',
                 :spam => true)
end

Version data entries

21 entries across 21 versions & 2 rubygems

Version Path
cms-inquiries-1.0.3 features/step_definitions/inquiry_steps.rb
cms-inquiries-1.0.2 features/step_definitions/inquiry_steps.rb
cms-inquiries-1.0.1 features/step_definitions/inquiry_steps.rb
refinerycms-inquiries-1.0.1 features/step_definitions/inquiry_steps.rb
refinerycms-inquiries-1.0.0 features/step_definitions/inquiry_steps.rb
refinerycms-inquiries-0.9.9.9 features/step_definitions/inquiry_steps.rb
refinerycms-inquiries-0.9.9.8 features/step_definitions/inquiry_steps.rb
refinerycms-inquiries-0.9.9.7 features/step_definitions/inquiry_steps.rb
refinerycms-inquiries-0.9.9.6 features/step_definitions/inquiry_steps.rb
refinerycms-inquiries-0.9.9.5 features/step_definitions/inquiry_steps.rb
refinerycms-inquiries-0.9.9.4 features/step_definitions/inquiry_steps.rb
refinerycms-inquiries-0.9.9.3 features/step_definitions/inquiry_steps.rb
refinerycms-inquiries-0.9.9.2 features/step_definitions/inquiry_steps.rb
refinerycms-inquiries-0.9.9.1 features/step_definitions/inquiry_steps.rb
refinerycms-inquiries-0.9.9 features/step_definitions/inquiry_steps.rb
refinerycms-inquiries-0.9.8.10 features/step_definitions/inquiry_steps.rb
refinerycms-inquiries-0.9.8.9 features/step_definitions/inquiry_steps.rb
refinerycms-inquiries-0.9.8.8 features/step_definitions/inquiry_steps.rb
refinerycms-inquiries-0.9.8.7 features/step_definitions/inquiry_steps.rb
refinerycms-inquiries-0.9.8.6 features/step_definitions/inquiry_steps.rb