Sha256: d5f8058619beb19aea095d28f19dfe40a92db9fba7f9ed24d9facc5b4415151f
Contents?: true
Size: 834 Bytes
Versions: 9
Compression:
Stored size: 834 Bytes
Contents
Then(/^a newsletter named "(.*?)" should exist$/) do |name| @newsletter = Newsletter::Newsletter.where(name: name).first expect(@newsletter).not_to be nil end Then(/^that newsletter should have the design named "(.*?)"$/) do |name| expect(@newsletter.design.name).to eq name end Given(/^a newsletter named "(.*?)" exists$/) do |name| design = import_design FactoryGirl.create(:newsletter, name: name, design: design) end Given(/^a newsletter named "(.*?)" exists with design named "(.*?)"$/) do |news_name, design_name| design = Newsletter::Design.where(name: design_name).first FactoryGirl.create(:newsletter, name: news_name, design: design) end Given(/^(\d+) newsletters exist$/) do |count| design = import_design(nil,Faker::Company.bs) count.to_i.times{FactoryGirl.create(:newsletter, design: design)} end
Version data entries
9 entries across 9 versions & 1 rubygems