Sha256: 6844fdbd0eb40dc2a36ce9a913af7c0293d1827d9eee58109c7dfcd54b45020d

Contents?: true

Size: 710 Bytes

Versions: 3

Compression:

Stored size: 710 Bytes

Contents

# Copied from the shoulda library
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
ActiveSupport::TestCase.fixture_path =
  File.join(File.dirname(__FILE__), "fixtures")

class ActiveSupport::TestCase #:nodoc:
  self.use_transactional_fixtures = false
  self.use_instantiated_fixtures  = false
end

require 'track_changes'
require 'shoulda'

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
track_changes-0.5.0 test/test_helper.rb
track_changes-0.4.1 test/test_helper.rb
track_changes-0.4.0 test/test_helper.rb