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

Version Path
mail_manager-3.2.25.1 spec/test_app/features/step_definitions/mailing_list.rb
mail_manager-3.2.22.0 spec/test_app/features/step_definitions/mailing_list.rb
mail_manager-3.2.7 spec/test_app/features/step_definitions/mailing_list.rb
mail_manager-3.2.6 spec/test_app/features/step_definitions/mailing_list.rb
mail_manager-3.2.5 spec/test_app/features/step_definitions/mailing_list.rb
mail_manager-3.2.4 spec/test_app/features/step_definitions/mailing_list.rb
mail_manager-3.2.2 spec/test_app/features/step_definitions/mailing_list.rb
mail_manager-3.2.1 spec/test_app/features/step_definitions/mailing_list.rb
mail_manager-3.2.0 spec/test_app/features/step_definitions/mailing_list.rb