Sha256: eee18f685b635962e51f570c8efcc59f2a68076d022c8fa47249e47cccbd5de1

Contents?: true

Size: 623 Bytes

Versions: 4

Compression:

Stored size: 623 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/pollyanna"
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

4 entries across 4 versions & 1 rubygems

Version Path
pollyanna-1.0.4 spec/spec_helper.rb
pollyanna-1.0.3 spec/spec_helper.rb
pollyanna-1.0.2 spec/spec_helper.rb
pollyanna-1.0.1 spec/spec_helper.rb