Sha256: 410184c1a28557e3388508cab678fe5091d959b87ded80d8bb57913c8cca2dda
Contents?: true
Size: 823 Bytes
Versions: 5
Compression:
Stored size: 823 Bytes
Contents
RAILS_PATH = File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'vanilla')) dir = File.dirname(__FILE__) $LOAD_PATH.unshift(dir) def require_files(*segments) Dir[File.expand_path(File.join(*segments))].each { |file| require file } end ENV["RAILS_ENV"] = "test" require "#{File.join(RAILS_PATH, 'config', 'environment')}" require 'engine-assets' require 'spec' require 'spec/autorun' require 'spec/rails' require_files(dir, 'support', '**', '*.rb') Spec::Runner.configure do |config| include Support::Helpers config.fixture_path = "#{File.dirname(__FILE__)}/../spec/support/fixtures" config.mock_with :rr config.use_transactional_fixtures = true config.use_instantiated_fixtures = false def basedir @basedir ||= "#{File.expand_path(File.join(File.dirname(__FILE__), '..'))}" end end
Version data entries
5 entries across 5 versions & 1 rubygems