Sha256: 308696189f2741aeb8fe189a25d6225ca2254b4cf3b36a56e946aae3a53819e5

Contents?: true

Size: 547 Bytes

Versions: 18

Compression:

Stored size: 547 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

# 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.0/spec/spec_helper.rb
dusen-0.6.0 spec/rails-3.0/spec/spec_helper.rb
dusen-0.5.3 spec/rails-3.0/spec/spec_helper.rb
dusen-0.5.2 spec/rails-3.0/spec/spec_helper.rb
dusen-0.5.1 spec/rails-3.0/spec/spec_helper.rb
dusen-0.5 spec/rails-3.0/spec/spec_helper.rb
dusen-0.4.11 spec/rails-3.0/spec/spec_helper.rb
dusen-0.4.10 spec/rails-3.0/spec/spec_helper.rb
dusen-0.4.9 spec/rails-3.0/spec/spec_helper.rb
dusen-0.4.8 spec/rails-3.0/spec/spec_helper.rb
dusen-0.4.6 spec/rails-3.0/spec/spec_helper.rb
dusen-0.4.5 spec/rails-3.0/spec/spec_helper.rb
dusen-0.4.4 spec/rails-3.0/spec/spec_helper.rb
dusen-0.4.3 spec/rails-3.0/spec/spec_helper.rb
dusen-0.4.2 spec/rails-3.0/spec/spec_helper.rb
dusen-0.4.1 spec/rails-3.0/spec/spec_helper.rb
dusen-0.4.0 spec/rails-3.0/spec/spec_helper.rb
dusen-0.3.0 spec/rails-3.0/spec/spec_helper.rb