Sha256: b1eeacc3da8cf61da4a784b67ef85d56bed28530415e11e0ab394204d12d1d8b
Contents?: true
Size: 726 Bytes
Versions: 1
Compression:
Stored size: 726 Bytes
Contents
require 'rubygems' require 'activerecord' require 'fileutils' FileUtils.mkdir_p("tmp") ActiveRecord::Base.establish_connection( :adapter => "sqlite3", :database => ":memory:" ) ActiveRecord::Base.logger = Logger.new("tmp/activerecord.log") $:.unshift(File.join(File.dirname(__FILE__), "../lib")) require 'activesupport' require 'by_star' require 'spec' # Define time zone before loading test_helper zone = "UTC" Time.zone = zone ActiveRecord::Base.default_timezone = zone load File.dirname(__FILE__) + "/fixtures/schema.rb" load File.dirname(__FILE__) + "/fixtures/models.rb" # bootstraping the plugin through init.rb # tests how it would load in a real application load File.dirname(__FILE__) + "/../rails/init.rb"
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
by_star-0.2.5 | spec/spec_helper.rb |