Sha256: b5eef5a59aa11402a8e9cd21d41859a304b1dd1e2b0375010e4936cd6e6930da
Contents?: true
Size: 834 Bytes
Versions: 14
Compression:
Stored size: 834 Bytes
Contents
############################################################################## # Email Plugin ############################################################################## # # The approach to this plugin is twofold. First it uses the excellent email_spec # gem to add helpers and matchers to any spec file with :email => true set. # Secondly, it will also clear all deliveries from ActionMailer if it is loaded. # # https://github.com/bmabey/email-spec/ # begin require 'email_spec' RSpec.configure do |config| config.include EmailSpec::Helpers, email: true config.include EmailSpec::Matchers, email: true end rescue LoadError end if defined? ActionMailer RSpec.configure do |config| config.after(:each, email: true) do ActionMailer::Base.deliveries.clear end end end
Version data entries
14 entries across 14 versions & 1 rubygems