Sha256: dfbee4ac599abd5d30d5d97d438e0f0ed7aa0d4b60e5c9225ab0014f40a527e3

Contents?: true

Size: 638 Bytes

Versions: 18

Compression:

Stored size: 638 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'
DatabaseCleaner.strategy = :truncation

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

# Run the migrations
Dusen::Util.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

18 entries across 18 versions & 1 rubygems

Version Path
dusen-0.6.1 spec/rails-3.2/spec/spec_helper.rb
dusen-0.6.0 spec/rails-3.2/spec/spec_helper.rb
dusen-0.5.3 spec/rails-3.2/spec/spec_helper.rb
dusen-0.5.2 spec/rails-3.2/spec/spec_helper.rb
dusen-0.5.1 spec/rails-3.2/spec/spec_helper.rb
dusen-0.5 spec/rails-3.2/spec/spec_helper.rb
dusen-0.4.11 spec/rails-3.2/spec/spec_helper.rb
dusen-0.4.10 spec/rails-3.2/spec/spec_helper.rb
dusen-0.4.9 spec/rails-3.2/spec/spec_helper.rb
dusen-0.4.8 spec/rails-3.2/spec/spec_helper.rb
dusen-0.4.6 spec/rails-3.2/spec/spec_helper.rb
dusen-0.4.5 spec/rails-3.2/spec/spec_helper.rb
dusen-0.4.4 spec/rails-3.2/spec/spec_helper.rb
dusen-0.4.3 spec/rails-3.2/spec/spec_helper.rb
dusen-0.4.2 spec/rails-3.2/spec/spec_helper.rb
dusen-0.4.1 spec/rails-3.2/spec/spec_helper.rb
dusen-0.4.0 spec/rails-3.2/spec/spec_helper.rb
dusen-0.3.0 spec/rails-3.2/spec/spec_helper.rb