Sha256: 1cd38daec676ddf8b0b2871de5ce348fe29d0e9100a15176ee11c23799f0533e

Contents?: true

Size: 493 Bytes

Versions: 10

Compression:

Stored size: 493 Bytes

Contents

Given(/^an email "(.*?)" with body: "(.*?)" is delivered to (.+?)$/) do |subject, body, to|
  Notifier.email(to, subject, body).deliver_now
end

Given(/^an email with a link "(.+?)" to (.+?) is delivered to (.+?)$/) do |text, page, to|
  body = "some text <a href='http://example.com/#{path_to(page)}'>#{text}</a> more text"
  Notifier.email(to, "example", body).deliver_now
end

Given(/^#{capture_model}'s email is delivered$/) do |model|
  Notifier.user_email(model!(model)).deliver_now
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
pickle-0.9.0 features/step_definitions/extra_email_steps.rb
pickle-0.8.0 features/step_definitions/extra_email_steps.rb
pickle-0.7.2 features/step_definitions/extra_email_steps.rb
pickle-0.7.1 features/step_definitions/extra_email_steps.rb
pickle-0.7.0 features/step_definitions/extra_email_steps.rb
pickle-0.6.2 features/step_definitions/extra_email_steps.rb
pickle-0.6.1 features/step_definitions/extra_email_steps.rb
pickle-0.6.0 features/step_definitions/extra_email_steps.rb
pickle-0.5.5 features/step_definitions/extra_email_steps.rb
pickle-0.5.4 features/step_definitions/extra_email_steps.rb