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