Sha256: 58ba73a8832691ef7aafe86e3c66ec0491369a0fb46cbd0dc3e862bdd3f43a4f
Contents?: true
Size: 570 Bytes
Versions: 1
Compression:
Stored size: 570 Bytes
Contents
module FreezingEmail::Rspec extend ActiveSupport::Concern included do before(:all) do FreezingEmail::Storage.cleanup end after(:each) do |example_group| dir = FreezingEmail::Config[:store_path] ActionMailer::Base.deliveries.each do |mail| freezing_mail = FreezingEmail::Mail.new(mail, { generated_in: example_group.example.description.to_s }) FreezingEmail::Storage.save(freezing_mail.name, freezing_mail) puts "FreezingEmail: Saved email #{freezing_mail.name}" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
freezing_email-0.0.2 | lib/freezing_email/rspec.rb |