Sha256: 04c598b5dea757fea6ee6083a7175d4c23019e39e4bc5da1505eec3fcca56bb2
Contents?: true
Size: 1.07 KB
Versions: 1
Compression:
Stored size: 1.07 KB
Contents
require 'rubygems' require 'logger' require 'stringio' if ENV["ACTIVE_RECORD_VERSION"] gem 'activerecord', ENV["ACTIVE_RECORD_VERSION"] else gem 'activerecord' end require 'active_record' require 'active_record/version' ActiveRecord::ActiveRecordError ActiveRecord::Base.logger = Logger.new(StringIO.new) puts "Testing with ActiveRecord #{ActiveRecord::VERSION::STRING}" composite_primary_key_version = nil if ActiveRecord::VERSION::MAJOR >= 3 composite_primary_key_version = ">=3.0.0" else composite_primary_key_version = "~>2.3.5" end gem 'composite_primary_keys', composite_primary_key_version require 'composite_primary_keys' require File.expand_path('../../lib/acts_as_revisionable', __FILE__) require 'sqlite3' module ActsAsRevisionable module Test def self.create_database ActiveRecord::Base.establish_connection("adapter" => "sqlite3", "database" => ":memory:") end def self.delete_database ActiveRecord::Base.connection.drop_table(ActsAsRevisionable::RevisionRecord.table_name) ActiveRecord::Base.connection.disconnect! end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
acts_as_revisionable-1.1.0 | spec/spec_helper.rb |