Sha256: d73d948dfe65a476dc65af48d46caf15ffb2f096c0411f39b02ef592b9b83010
Contents?: true
Size: 989 Bytes
Versions: 12
Compression:
Stored size: 989 Bytes
Contents
# Configure Rails Envinronment ENV["RAILS_ENV"] = "test" require 'bundler/setup' require 'rails' require 'rails/test_help' require 'sassc/rails' Rails.backtrace_cleaner.remove_silencers! # If developing against local dependencies, this code will ensure they get picked up # in the project fixtures that have their own bundle environment $gem_options = {} possible_dev_dependencies = %w(sassc-rails sassc rails actionpack railties sprockets journey sprockets-rails activerecord-deprecated_finders pry-rails) Bundler.load.specs.each do |s| if possible_dev_dependencies.include?(s.name) gem_path = s.full_gem_path gem_options = { version: s.version} gem_options[:path] = gem_path if File.exists?("#{gem_path}/#{s.name}.gemspec") $gem_options[s.name] = gem_options end end # Load support files Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f } ActiveSupport::TestCase.test_order = :random if ActiveSupport::TestCase.respond_to?(:test_order=)
Version data entries
12 entries across 12 versions & 1 rubygems