Sha256: bb74ae994fb285c9282e4d0983ec05371f3db8c70cdee180be9212e121a9fe5f

Contents?: true

Size: 682 Bytes

Versions: 9

Compression:

Stored size: 682 Bytes

Contents

# encoding: utf-8

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

ENV['RAILS_ENV'] = 'test'
ENV['RAILS_ROOT'] = 'app_root'

# Load the Rails environment and testing framework
require "#{File.dirname(__FILE__)}/../app_root/config/environment"
require 'rspec/rails'
require 'edge_rider/development'
DatabaseCleaner.strategy = :truncation

# Dir["#{File.dirname(__FILE__)}/../../shared/spec/shared_examples"].each {|f| require f}

# Run the migrations
EdgeRider::Development.migrate_test_database

RSpec.configure do |config|
  config.use_transactional_fixtures = false
  config.use_instantiated_fixtures  = false
  config.before(:each) do
    DatabaseCleaner.clean
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
edge_rider-0.3.1 spec/rails-3.2/spec/spec_helper.rb
edge_rider-0.3.0 spec/rails-3.2/spec/spec_helper.rb
edge_rider-0.2.5 spec/rails-3.2/spec/spec_helper.rb
edge_rider-0.2.4 spec/rails-3.2/spec/spec_helper.rb
edge_rider-0.2.3 spec/rails-3.2/spec/spec_helper.rb
edge_rider-0.2.2 spec/rails-3.2/spec/spec_helper.rb
edge_rider-0.2.1 spec/rails-3.2/spec/spec_helper.rb
edge_rider-0.2.0 spec/rails-3.2/spec/spec_helper.rb
edge_rider-0.1.1 spec/rails-3.2/spec/spec_helper.rb