Sha256: 0ef942a9a5bd84fb34060bbfbf568cfa5e4be3cb23c16b0b0486735077904591

Contents?: true

Size: 433 Bytes

Versions: 2

Compression:

Stored size: 433 Bytes

Contents

ENV["RAILS_ENV"] ||= 'test'
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
require 'cancannible'
require 'active_record'
require 'sqlite3'

# Requires supporting files with custom matchers and macros, etc,
# in ./support/ and its subdirectories.
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].sort.each {|f| require f}

RSpec.configure do |config|
  config.before do
    Cancannible.reset!
    run_migrations
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cancannible-2.1.0 spec/spec_helper.rb
cancannible-2.0.0 spec/spec_helper.rb