Sha256: a453ab85688e445e6aded080e2fc3b119d4148eb4718e2de354e69075d9fa6f9

Contents?: true

Size: 903 Bytes

Versions: 91

Compression:

Stored size: 903 Bytes

Contents

require 'fileutils'
require 'test/unit'

ENV['RAILS_ENV'] = 'test'

ENV['RAILS_VERSION'] ||= '2.3.8'
RAILS_GEM_VERSION = ENV['RAILS_VERSION']

if ENV['RAILS_VERSION'].to_s =~ /^2/
  require 'test/rails2_test_helper'
else
  require 'test/rails3_test_helper'
end

shoulda_path = File.join(File.dirname(__FILE__), '..', 'lib')
$LOAD_PATH << shoulda_path
require 'shoulda'

# 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 'test/fail_macros'

Shoulda.autoload_macros File.join(File.dirname(__FILE__), 'rails2_root'),
                        File.join("vendor", "{plugins,gems}", "*")

Version data entries

91 entries across 61 versions & 10 rubygems

Version Path
apl-library-0.0.90 vendor/bundle/ruby/1.9.1/gems/shoulda-2.11.3/test/test_helper.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/1.9.1/gems/shoulda-2.11.3/test/test_helper.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/shoulda-2.11.3/test/test_helper.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/2.1.0/gems/shoulda-2.11.3/test/test_helper.rb
dirty_history-0.7.3 dirty_history/ruby/1.9.1/gems/shoulda-2.11.3/test/test_helper.rb
dirty_history-0.7.2 dirty_history/ruby/1.9.1/gems/shoulda-2.11.3/test/test_helper.rb
dirty_history-0.7.1 dirty_history/ruby/1.9.1/gems/shoulda-2.11.3/test/test_helper.rb
dirty_history-0.7.0 dirty_history/ruby/1.9.1/gems/shoulda-2.11.3/test/test_helper.rb
dirty_history-0.6.7 dirty_history/ruby/1.9.1/gems/shoulda-2.11.3/test/test_helper.rb
dirty_history-0.6.6 dirty_history/ruby/1.9.1/gems/shoulda-2.11.3/test/test_helper.rb
dirty_history-0.6.5 dirty_history/ruby/1.9.1/gems/shoulda-2.11.3/test/test_helper.rb
dirty_history-0.6.4 dirty_history/ruby/1.9.1/gems/shoulda-2.11.3/test/test_helper.rb
dirty_history-0.6.3 dirty_history/ruby/1.9.1/gems/shoulda-2.11.3/test/test_helper.rb
challah-0.6.2 vendor/bundle/gems/shoulda-2.11.3/test/test_helper.rb
dirty_history-0.6.2 dirty_history/ruby/1.9.1/gems/shoulda-2.11.3/test/test_helper.rb
dirty_history-0.6.1 dirty_history/ruby/1.9.1/gems/shoulda-2.11.3/test/test_helper.rb
dirty_history-0.6.0 dirty_history/ruby/1.9.1/gems/shoulda-2.11.3/test/test_helper.rb
challah-0.6.1 vendor/bundle/gems/shoulda-2.11.3/test/test_helper.rb
dirty_history-0.5.4 dirty_history/ruby/1.9.1/gems/shoulda-2.11.3/test/test_helper.rb
challah-0.6.0 vendor/bundle/gems/shoulda-2.11.3/test/test_helper.rb