Sha256: a6f879a5a767ade4174c54b0fa036c4d46edb444d9608949f34a764bf8ec6635
Contents?: true
Size: 889 Bytes
Versions: 2
Compression:
Stored size: 889 Bytes
Contents
TESTAPP_ROOT = File.join(File.dirname(__FILE__), '..', 'tmp', 'testapp') FileUtils.rm_rf(TESTAPP_ROOT) if File.exists?(TESTAPP_ROOT) `rails new #{TESTAPP_ROOT}` ENV['RAILS_ENV'] = 'test' ENV['BUNDLE_GEMFILE'] ||= "#{TESTAPP_ROOT}/Gemfile" require "#{TESTAPP_ROOT}/config/environment" require 'aktion_test_rails' require 'aktion_test_rails/class_builder' require 'aktion_test_rails/model_builder' PROJECT_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..')).freeze $LOAD_PATH << File.join(PROJECT_ROOT, 'lib') Dir[File.join(File.dirname(__FILE__), 'support', '**', '*.rb')].each{|file| require file} ActiveRecord::Migration.verbose = false ActiveRecord::Migrator.migrate("#{Rails.root}/db/migrate") RSpec.configure do |config| config.treat_symbols_as_metadata_keys_with_true_values = true config.run_all_when_everything_filtered = true config.order = 'random' end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
aktion_test_rails-0.1.1 | spec/spec_helper.rb |
aktion_test_rails-0.1.0 | spec/spec_helper.rb |