Sha256: cdbad6e05a5af08a91f179585afecb4227544a18fe543f9a3ddbfb8f123a8287
Contents?: true
Size: 886 Bytes
Versions: 2
Compression:
Stored size: 886 Bytes
Contents
require 'simplecov' require 'simplecov-gem-profile' SimpleCov.start "gem" $LOAD_PATH.unshift(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'rspec' require 'active_record' require 'schema_plus_indexes' require 'schema_dev/rspec' SchemaDev::Rspec.setup Dir[File.dirname(__FILE__) + "/support/**/*.rb"].each {|f| require f} RSpec.configure do |config| config.include(SchemaPlusIndexesMatchers) config.warnings = true end def define_schema(config={}, &block) ActiveRecord::Migration.suppress_messages do ActiveRecord::Schema.define do connection.tables.each do |table| drop_table table, :cascade => true end instance_eval &block end end end SimpleCov.command_name "[ruby #{RUBY_VERSION} - ActiveRecord #{::ActiveRecord::VERSION::STRING} - #{ActiveRecord::Base.connection.adapter_name}]"
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
schema_plus_indexes-0.1.1 | spec/spec_helper.rb |
schema_plus_indexes-0.1.0 | spec/spec_helper.rb |