Sha256: 1cb2ff565c0033112ff86d1909bbe2bc8b02fe1ad9d6a9e193372614b3a9a9ca
Contents?: true
Size: 691 Bytes
Versions: 3
Compression:
Stored size: 691 Bytes
Contents
require 'active_git' require 'logger' Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f} TEMP_PATH = ENV['TMP'].gsub("\\", '/') ActiveRecord::Base.logger = Logger.new($stdout) ActiveRecord::Migrator.migrations_path = "#{File.dirname(__FILE__)}/migrations" RSpec.configure do |config| config.around do |example| ActiveRecord::Base.transaction do example.run raise ActiveRecord::Rollback end end config.before :all do ActiveRecord::Base.establish_connection adapter: 'sqlite3', database: ":memory:" ActiveRecord::Base.connection ActiveRecord::Migrator.migrate ActiveRecord::Migrator.migrations_path end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
active_git-0.0.3 | spec/spec_helper.rb |
active_git-0.0.2 | spec/spec_helper.rb |
active_git-0.0.1 | spec/spec_helper.rb |