Sha256: 581d4326752e17034ab9bdd37c4931d78674ca2374b802ed0546a3703364ec8b
Contents?: true
Size: 935 Bytes
Versions: 5
Compression:
Stored size: 935 Bytes
Contents
require 'rubygems' require 'active_record' require 'test/unit' require 'active_record/test_case' require 'shoulda' require 'mocha' begin require 'mysqlplus' rescue LoadError end Dir.chdir(File.join(File.dirname(__FILE__), '..')) ActiveRecord::Base.logger = Logger.new("debug.log") databases = YAML::load(IO.read("spec/active_record/fixtures/database.yml")) db_info = databases[ENV["DB"] || "test"] ActiveRecord::Base.establish_connection(db_info) require 'lib/blueprints' require 'spec/active_record/fixtures/fruit' require 'spec/active_record/fixtures/tree' class ActiveSupport::TestCase enable_blueprints :root => File.join(File.dirname(__FILE__), '..'), :prebuild => :big_cherry, :filename => 'spec/active_record/blueprint.rb' def assert_similar(array1, array2) assert (array1 - array2).empty?, "Extra elements #{array1 - array2}" assert (array2 - array1).empty?, "Missing elements #{array2 - array1}" end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
blueprints-0.6.3 | test/test_helper.rb |
blueprints-0.6.2 | test/test_helper.rb |
blueprints-0.6.1 | test/test_helper.rb |
blueprints-0.6.0 | test/test_helper.rb |
blueprints-0.5.1 | test/test_helper.rb |