Sha256: 862b5f6675b470d0777ef574f7ccae090e493be7491dea2541ece9fc4300b379

Contents?: true

Size: 969 Bytes

Versions: 5

Compression:

Stored size: 969 Bytes

Contents

$:.unshift(File.dirname(__FILE__) + '/../lib')
plugin_test_dir = File.dirname(__FILE__)

require 'rubygems'
require 'bundler/setup'

require 'rspec'
require 'logger'

require 'active_support'
require 'active_model'
require 'active_record'
require 'action_controller'

require 'closure_tree'

ActiveRecord::Base.logger = Logger.new(plugin_test_dir + "/debug.log")

require 'yaml'
require 'erb'
ActiveRecord::Base.configurations = YAML::load(ERB.new(IO.read(plugin_test_dir + "/db/database.yml")).result)
ActiveRecord::Base.establish_connection(ENV["DB"] || "mysql")
ActiveRecord::Migration.verbose = false
load(File.join(plugin_test_dir, "db", "schema.rb"))

require 'support/models'

require 'rspec/rails'
RSpec.configure do |config|
  config.fixture_path = "#{plugin_test_dir}/fixtures"
  # true runs the tests 1 second faster, but then you can't
  # see what's going on while debuggering with different db connections.
  config.use_transactional_fixtures = false
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
closure_tree-3.0.2 spec/spec_helper.rb
closure_tree-3.0.1 spec/spec_helper.rb
closure_tree-3.0.0 spec/spec_helper.rb
closure_tree-2.0.0 spec/spec_helper.rb
closure_tree-2.0.0.beta1 spec/spec_helper.rb