Sha256: 3ee82319890154336c90dc46bc70c267fe88618bcc90568a0ccbaff1d67fb8c8
Contents?: true
Size: 608 Bytes
Versions: 9
Compression:
Stored size: 608 Bytes
Contents
Given(/^a mailing list named "(.*)" exists$/) do |name| FactoryGirl.create(:mailing_list, name: name) end Given(/^(?:the)? mailing list named "(.*?)" is one of mailing "(.*?)"'s mailing_lists$/) do |list_name, subject| mailing = MailManager::Mailing.where(subject: subject).first mailing.mailing_lists << MailManager::MailingList.find_by_name(list_name) end Then(/^a mailing list named "(.*?)" should exist$/) do |name| expect(MailManager::MailingList.find_by_name(name)).not_to be nil end Given(/^(\d+) mailing lists exist$/) do |count| count.to_i.times{FactoryGirl.create(:mailing_list)} end
Version data entries
9 entries across 9 versions & 1 rubygems