Sha256: 261ab1906392bd88c785296e2fc669d99dfc98dc27c609f4b4b31d2495cd56d3

Contents?: true

Size: 726 Bytes

Versions: 11

Compression:

Stored size: 726 Bytes

Contents

# encoding: utf-8

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

ENV['RAILS_ENV'] = 'test'

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

# Requires supporting files with custom matchers and macros, etc in ./support/ and its subdirectories.
Dir[File.expand_path(File.join(File.dirname(__FILE__),'support','**','*.rb'))].each {|f| require f}

# Run the migrations
Dusen::Util.migrate_test_database

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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
dusen-0.4.10 spec/rails-2.3/spec/spec_helper.rb
dusen-0.4.9 spec/rails-2.3/spec/spec_helper.rb
dusen-0.4.8 spec/rails-2.3/spec/spec_helper.rb
dusen-0.4.6 spec/rails-2.3/spec/spec_helper.rb
dusen-0.4.5 spec/rails-2.3/spec/spec_helper.rb
dusen-0.4.4 spec/rails-2.3/spec/spec_helper.rb
dusen-0.4.3 spec/rails-2.3/spec/spec_helper.rb
dusen-0.4.2 spec/rails-2.3/spec/spec_helper.rb
dusen-0.4.1 spec/rails-2.3/spec/spec_helper.rb
dusen-0.4.0 spec/rails-2.3/spec/spec_helper.rb
dusen-0.3.0 spec/rails-2.3/spec/spec_helper.rb