Sha256: e485c19afc796c55c4237850945e83c9ecda7b89dad3d639533a997d344ceb39

Contents?: true

Size: 902 Bytes

Versions: 2

Compression:

Stored size: 902 Bytes

Contents

ENV['RAILS_ENV'] ||= 'test'
require 'coveralls'
Coveralls.wear!

# Gem main file
require 'google_analytics_mailer'
require 'active_support/all'
require 'email_spec'
require 'rails/all'
require 'rspec/rails'

# Connect to an in memory db, needed for rails 4.1 testing
ActiveRecord::Base.establish_connection(adapter: "sqlite3", database: ":memory:")
ActiveRecord::Schema.verbose = false

# Requires supporting ruby files with custom matchers and macros, etc,
# in spec/support/ and its subdirectories.
Dir[File.join(File.dirname(__FILE__), 'support/**/*.rb')].each { |f| require f }

# Configure action mailer for test deliveries
ActionMailer::Base.delivery_method = :test
# Configure action mailer view path
ActionMailer::Base.view_paths = File.join(File.dirname(__FILE__), 'support', 'views')

RSpec.configure do |config|

  config.include EmailSpec::Helpers
  config.include EmailSpec::Matchers

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
google_analytics_mailer-0.3.0 spec/spec_helper.rb
google_analytics_mailer-0.2.1 spec/spec_helper.rb