Sha256: a8dc0dcb40546dd7307f8a3ac6c92fc09cb94633b6e81e17531644f6dee0cefa

Contents?: true

Size: 925 Bytes

Versions: 2

Compression:

Stored size: 925 Bytes

Contents

#require 'simplecov'
#SimpleCov.start do
#  add_filter 'test'
#  command_name 'Minitest'
#end

# Configure Rails Environment
ENV["RAILS_ENV"] = "test"


rails_version = `rails -v`.strip
aster = '#' * 20
puts "#{aster} Testing Ruby #{RUBY_VERSION}; #{rails_version} #{aster}"

rails_version =~ /Rails (\d*)\./
dir = "dummy#{$1}"


require File.expand_path("../#{dir}/config/environment.rb",  __FILE__)
ActiveRecord::Migrator.migrations_paths = [File.expand_path("../../test/#{dir}/db/migrate", __FILE__)]
require 'rails/test_help'

# Load support files
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }

# Load fixtures from the engine
if ActiveSupport::TestCase.respond_to?(:fixture_path=)
  ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
  ActionDispatch::IntegrationTest.fixture_path = ActiveSupport::TestCase.fixture_path
  ActiveSupport::TestCase.fixtures :all
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rows_controller-2.1.3 test/test_helper.rb
rows_controller-2.1.2 test/test_helper.rb