Sha256: 052b54813c0f3c8d3b883ef85ed110328a81e48bf0f7f06fd667affe14c17c94

Contents?: true

Size: 664 Bytes

Versions: 21

Compression:

Stored size: 664 Bytes

Contents

# require this in your env.rb file after you require cucumber/rails/world

# Global Setup
ActionMailer::Base.delivery_method = :test unless ActionMailer::Base.delivery_method == :activerecord
ActionMailer::Base.perform_deliveries = true

Before do
  # Scenario setup
  ActionMailer::Base.deliveries.clear if ActionMailer::Base.delivery_method == :test
end

After do
  EmailSpec::EmailViewer.save_and_open_all_raw_emails if ENV['SHOW_EMAILS']
  EmailSpec::EmailViewer.save_and_open_all_html_emails if ENV['SHOW_HTML_EMAILS']
  EmailSpec::EmailViewer.save_and_open_all_text_emails if ENV['SHOW_TEXT_EMAILS']
end

World(EmailSpec::Helpers)
World(EmailSpec::Matchers)

Version data entries

21 entries across 21 versions & 8 rubygems

Version Path
basiszwo-email_spec-0.1.3 lib/email_spec/cucumber.rb
bmabey-email_spec-0.1.3 lib/email_spec/cucumber.rb
bmabey-email_spec-0.1.4 lib/email_spec/cucumber.rb
bmabey-email_spec-0.2.0 lib/email_spec/cucumber.rb
bmabey-email_spec-0.2.1 lib/email_spec/cucumber.rb
bmabey-email_spec-0.3.0 lib/email_spec/cucumber.rb
bmabey-email_spec-0.3.1 lib/email_spec/cucumber.rb
bmabey-email_spec-0.3.2 lib/email_spec/cucumber.rb
bmabey-email_spec-0.3.3 lib/email_spec/cucumber.rb
bmabey-email_spec-0.3.4 lib/email_spec/cucumber.rb
craigw-email_spec-0.1.4 lib/email_spec/cucumber.rb
hectoregm-email_spec-0.1.2 lib/email_spec/cucumber.rb
hectoregm-email_spec-0.1.3 lib/email_spec/cucumber.rb
leondu-email_spec-0.1.4 lib/email_spec/cucumber.rb
rainchen-email_spec-0.1.4 lib/email_spec/cucumber.rb
tpitale-email_spec-0.2.1 lib/email_spec/cucumber.rb
tpitale-email_spec-0.2.2 lib/email_spec/cucumber.rb
email_spec-0.3.1 lib/email_spec/cucumber.rb
email_spec-0.3.0 lib/email_spec/cucumber.rb
email_spec-0.2.1 lib/email_spec/cucumber.rb