Sha256: 579ae17a4087ca06b837f72b4f178ff87e7edb8786a046aeef6c82cf9b23c7c7
Contents?: true
Size: 999 Bytes
Versions: 1
Compression:
Stored size: 999 Bytes
Contents
require 'rubygems' require 'active_record' require 'fileutils' require 'logger' FileUtils.mkdir_p("tmp") ActiveRecord::Base.logger = Logger.new("tmp/activerecord.log") $:.unshift(File.join(File.dirname(__FILE__), "../lib")) require 'active_support' require 'by_star' require 'spec' # Define time zone before loading test_helper zone = "UTC" Time.zone = zone ActiveRecord::Base.default_timezone = zone YAML::load_file(File.dirname(__FILE__) + "/database.yml").each do |key, connection| ActiveRecord::Base.establish_connection(connection) load File.dirname(__FILE__) + "/fixtures/schema.rb" load File.dirname(__FILE__) + "/fixtures/models.rb" end # bootstraping the plugin through init.rb # tests how it would load in a real application load File.dirname(__FILE__) + "/../rails/init.rb" # Print the location of puts/p calls so you can find them later def puts str super caller.first if caller.first.index("shoulda.rb") == -1 super str end def p obj puts caller.first super obj end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
by_star-0.6.0 | spec/spec_helper.rb |