Sha256: 0b0f07ab43fe54e747ca6bf6369a4c0f6c597fa1599c54f5c198e549570d9f3a

Contents?: true

Size: 626 Bytes

Versions: 3

Compression:

Stored size: 626 Bytes

Contents

$: << File.join(File.dirname(__FILE__), "/../lib" )

# Set the default environment to sqlite3's in_memory database
ENV['RAILS_ENV'] ||= 'in_memory'

# Load the Rails environment and testing framework
require "#{File.dirname(__FILE__)}/app_root/config/environment"
require "#{File.dirname(__FILE__)}/../lib/mail_magnet"
require 'spec/rails'

# Undo changes to RAILS_ENV
silence_warnings {RAILS_ENV = ENV['RAILS_ENV']}

# Run the migrations
ActiveRecord::Migrator.migrate("#{Rails.root}/db/migrate")

Spec::Runner.configure do |config|
  config.use_transactional_fixtures = true
  config.use_instantiated_fixtures  = false
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mail_magnet-0.2.0 spec/spec_helper.rb
mail_magnet-0.1.1 spec/spec_helper.rb
mail_magnet-0.1.0 spec/spec_helper.rb