Sha256: 229803cbc71999b5a7d721e6ec1a6a9a6862e02aa8319e4013e7729ff6e0a2b8

Contents?: true

Size: 514 Bytes

Versions: 1

Compression:

Stored size: 514 Bytes

Contents

Given /^a list named "([^\"]*)"$/ do |name|
  assert_not_nil MonkeyParty::List.find_by_name(name)
end

When /^I attempt to subscribe "([^\"]*)" to the "([^\"]*)" list$/ do |email, list|
  @subscribers = MonkeyParty::List.find_by_name(list).create_subscribers(
    [MonkeyParty::Subscriber.new(email,
      :first_name => "John",
      :last_name  => "Smith"
    )], :update_existing => true, :double_optin => true)
end

Then /^the subscription should submit successfully$/ do
  assert @subscribers[0].valid?
end


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
monkey_party-0.2.0 features/step_definitions/list_steps.rb