Sha256: 9e85f1d0a1f25b3acb7ff402abbb010da0d4f87c92ca4ab1c5693161c8d6fb99
Contents?: true
Size: 891 Bytes
Versions: 2
Compression:
Stored size: 891 Bytes
Contents
plugin_root = File.join(File.dirname(__FILE__), '..') gem 'rails' require 'active_record' require 'active_support' require 'action_controller' require 'action_view' $:.unshift "#{plugin_root}/lib" RAILS_ROOT = File.expand_path(File.dirname(__FILE__) + '/../') Rails::Initializer.run(:set_load_path) Rails::Initializer.run(:set_autoload_paths) Rails::Initializer.run(:initialize_time_zone) do |config| config.time_zone = 'Pacific Time (US & Canada)' end require File.join(File.dirname(__FILE__), '..', 'rails', 'init.rb') FileUtils.mkdir_p File.join(File.dirname(__FILE__), 'log') ActiveRecord::Base.logger = Logger.new(File.join(File.dirname(__FILE__), 'log', 'spec.log')) databases = YAML::load(IO.read(File.join(File.dirname(__FILE__), 'db', 'database.yml'))) ActiveRecord::Base.establish_connection(databases['sqlite3']) load(File.join(File.dirname(__FILE__), 'db', 'schema.rb'))
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
reportable-1.0.1 | spec/boot.rb |
reportable-1.0.0 | spec/boot.rb |