Sha256: 901561b5afb061c205078a3662df8930ff2ab845e3855115e8baa975d12f7e82

Contents?: true

Size: 930 Bytes

Versions: 19

Compression:

Stored size: 930 Bytes

Contents

require 'fileutils'

# Load the environment
ENV['RAILS_ENV'] = 'test'

rails_root = File.dirname(__FILE__) + '/rails_root'

require "#{rails_root}/config/environment.rb"

# Load the testing framework
require 'test_help'
silence_warnings { RAILS_ENV = ENV['RAILS_ENV'] }

# Run the migrations
ActiveRecord::Migration.verbose = false
ActiveRecord::Migrator.migrate("#{RAILS_ROOT}/db/migrate")

# Setup the fixtures path
Test::Unit::TestCase.fixture_path = File.join(File.dirname(__FILE__), "fixtures")

class Test::Unit::TestCase #:nodoc:
  def create_fixtures(*table_names)
    if block_given?
      Fixtures.create_fixtures(Test::Unit::TestCase.fixture_path, table_names) { yield }
    else
      Fixtures.create_fixtures(Test::Unit::TestCase.fixture_path, table_names)
    end
  end

  self.use_transactional_fixtures = false
  self.use_instantiated_fixtures  = false
end

require 'test/fail_macros'
require 'test/model_builder'

Version data entries

19 entries across 19 versions & 7 rubygems

Version Path
Flamefork-shoulda-2.10.1 test/test_helper.rb
Flamefork-shoulda-2.10.2 test/test_helper.rb
francois-shoulda-2.10.1 test/test_helper.rb
ratnikov-shoulda-2.9.0.1 test/test_helper.rb
ratnikov-shoulda-2.9.0.2 test/test_helper.rb
ratnikov-shoulda-2.9.0.3 test/test_helper.rb
ratnikov-shoulda-2.9.0 test/test_helper.rb
rmm5t-shoulda-2.9.1 test/test_helper.rb
technicalpickles-shoulda-2.10.0 test/test_helper.rb
thoughtbot-shoulda-2.10.0 test/test_helper.rb
thoughtbot-shoulda-2.10.1 test/test_helper.rb
thoughtbot-shoulda-2.9.0 test/test_helper.rb
thoughtbot-shoulda-2.9.1 test/test_helper.rb
thoughtbot-shoulda-2.9.2 test/test_helper.rb
shoulda-2.9.0 test/test_helper.rb
shoulda-2.9.1 test/test_helper.rb
shoulda-2.9.2 test/test_helper.rb
shoulda-2.10.0 test/test_helper.rb
shoulda-2.10.1 test/test_helper.rb