Sha256: 1c3b2d32dbcba60f739c833bc793294b85fb0af4789f6b76a28190c6e39b6c1d

Contents?: true

Size: 1.04 KB

Versions: 15

Compression:

Stored size: 1.04 KB

Contents

$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__))
require 'rubygems'
require 'bundler/setup'
require 'rspec/its'
require 'rspec/collection_matchers'
require 'webmock/rspec'
require 'pry'
begin
  require 'pry-byebug'
rescue LoadError
end

require 'activerecord-turntable'

require 'coveralls'
Coveralls.wear!

MIGRATIONS_ROOT = File.expand_path(File.join(File.dirname(__FILE__), 'migrations'))

# Requires supporting files with custom matchers and macros, etc,
# in ./support/ and its subdirectories.
ActiveRecord::Base.configurations = YAML.load_file(File.join(File.dirname(__FILE__), 'config/database.yml'))
ActiveRecord::Base.establish_connection(:test)

Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}

RSpec.configure do |config|
  include TurntableHelper

  config.filter_run focus: true
  config.run_all_when_everything_filtered = true

  config.before(:each) do
    Dir[File.join(File.dirname(File.dirname(__FILE__)), 'spec/models/*.rb')].each { |f| require f }
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
activerecord-turntable-2.5.0 spec/spec_helper.rb
activerecord-turntable-2.4.0 spec/spec_helper.rb
activerecord-turntable-2.3.3 spec/spec_helper.rb
activerecord-turntable-2.3.2 spec/spec_helper.rb
activerecord-turntable-2.3.1 spec/spec_helper.rb
activerecord-turntable-2.3.0 spec/spec_helper.rb
activerecord-turntable-2.2.2 spec/spec_helper.rb
activerecord-turntable-2.2.1 spec/spec_helper.rb
activerecord-turntable-2.2.0 spec/spec_helper.rb
activerecord-turntable-2.1.1 spec/spec_helper.rb
activerecord-turntable-2.1.0 spec/spec_helper.rb
activerecord-turntable-2.1.0.rc2 spec/spec_helper.rb
activerecord-turntable-2.1.0.rc1 spec/spec_helper.rb
activerecord-turntable-2.1.0.beta2 spec/spec_helper.rb
activerecord-turntable-2.1.0.beta1 spec/spec_helper.rb