Sha256: b415755d617382586618519777838aa65e317f7731b6933f14e171e2bc1c0508
Contents?: true
Size: 605 Bytes
Versions: 5
Compression:
Stored size: 605 Bytes
Contents
$LOAD_PATH.unshift(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'rubygems' require 'postmark' require 'postmark-rails' require 'json' ActionMailer::Base.delivery_method = :postmark ActionMailer::Base.prepend_view_path(File.join(File.dirname(__FILE__), "fixtures", "views")) Dir["#{File.dirname(__FILE__)}/fixtures/models/*.rb"].each { |f| require f } RSpec.configure do |config| def make_mailer(base, &block) mailer = Class.new(base, &block) @mailer_number = 0 stub_const("Mailer#{@mailer_number += 1}", mailer) mailer end end
Version data entries
5 entries across 5 versions & 1 rubygems