Sha256: 7497c426b66866452b70cd7faaa2c083fe498065d043e778b22679618c77600d
Contents?: true
Size: 674 Bytes
Versions: 4
Compression:
Stored size: 674 Bytes
Contents
$LOAD_PATH.unshift File.expand_path('../lib', __FILE__) require 'rspec' require 'sqlite3' require 'mysql2' require 'pg' require 'microscope' # Require our macros and extensions Dir[File.expand_path('../../spec/support/macros/**/*.rb', __FILE__)].map(&method(:require)) RSpec.configure do |config| # Include our macros config.include DatabaseMacros config.include ModelMacros # Disable `should` syntax config.expect_with :rspec do |c| c.syntax = :expect end config.before :each do # Establish ActiveRecord database connection adapter = ENV['DB_ADAPTER'] || 'sqlite3' setup_database(adapter: adapter, database: 'microscope_test') end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
microscope-1.1.1 | spec/spec_helper.rb |
microscope-1.1.0 | spec/spec_helper.rb |
microscope-1.0.1 | spec/spec_helper.rb |
microscope-1.0.0 | spec/spec_helper.rb |