Sha256: 67e79a0f178bb5065be34898010fedc55cdb5e230f7e0db22c6cc822a2313878

Contents?: true

Size: 668 Bytes

Versions: 5

Compression:

Stored size: 668 Bytes

Contents

$:.unshift File.expand_path('../lib', __FILE__)

require 'rspec'
require 'sqlite3'

require 'microscope'

# Require our macros and extensions
Dir[File.expand_path('../../spec/support/macros/*.rb', __FILE__)].map(&method(:require))

# Inject our methods into ActiveRecord (like our railtie does)
ActiveRecord::Base.class_eval(&Microscope.inject_into_active_record)

RSpec.configure do |config|
  # Include our macros
  config.include DatabaseMacros
  config.include ModelMacros

  config.before(:each) do
    # Create the SQLite database
    setup_database
  end

  config.after(:each) do
    # Make sure we remove our test database file
    cleanup_database
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
microscope-0.3 spec/spec_helper.rb
microscope-0.2 spec/spec_helper.rb
microscope-0.1.1 spec/spec_helper.rb
microscope-0.1 spec/spec_helper.rb
microscope-0.0.1 spec/spec_helper.rb