Sha256: ddba72f21ceead76f280b236e604c9a03a1757d96c53775fb5b3464b2a3afbbd

Contents?: true

Size: 451 Bytes

Versions: 21

Compression:

Stored size: 451 Bytes

Contents

require 'rspec'

ENV['RUBYPITAYA_ENV'] = 'test'

require 'rubypitaya/core/helpers/setup_helper'
require 'rubypitaya/core/spec-helpers/handler_spec_helper'

RSpec.configure do |config|
  config.include RubyPitaya::HandlerSpecHelper

  config.before(:each) do
    ActiveRecord::Base.descendants.each { |c| c.delete_all unless c == ActiveRecord::SchemaMigration }
  end

  config.after(:each) do
    ActiveRecord::Base.clear_active_connections!
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
rubypitaya-3.5.0 ./lib/rubypitaya/core/spec-helpers/rubypitaya_spec_helper.rb
rubypitaya-3.4.2 ./lib/rubypitaya/core/spec-helpers/rubypitaya_spec_helper.rb
rubypitaya-3.4.1 ./lib/rubypitaya/core/spec-helpers/rubypitaya_spec_helper.rb
rubypitaya-3.4.0 ./lib/rubypitaya/core/spec-helpers/rubypitaya_spec_helper.rb
rubypitaya-3.3.7 ./lib/rubypitaya/core/spec-helpers/rubypitaya_spec_helper.rb
rubypitaya-3.3.6 ./lib/rubypitaya/core/spec-helpers/rubypitaya_spec_helper.rb
rubypitaya-3.3.5 ./lib/rubypitaya/core/spec-helpers/rubypitaya_spec_helper.rb
rubypitaya-3.3.4 ./lib/rubypitaya/core/spec-helpers/rubypitaya_spec_helper.rb
rubypitaya-3.3.3 ./lib/rubypitaya/core/spec-helpers/rubypitaya_spec_helper.rb
rubypitaya-3.3.2 ./lib/rubypitaya/core/spec-helpers/rubypitaya_spec_helper.rb
rubypitaya-3.3.1 ./lib/rubypitaya/core/spec-helpers/rubypitaya_spec_helper.rb
rubypitaya-3.3.0 ./lib/rubypitaya/core/spec-helpers/rubypitaya_spec_helper.rb
rubypitaya-3.2.0 ./lib/rubypitaya/core/spec-helpers/rubypitaya_spec_helper.rb
rubypitaya-3.1.1 ./lib/rubypitaya/core/spec-helpers/rubypitaya_spec_helper.rb
rubypitaya-3.1.0 ./lib/rubypitaya/core/spec-helpers/rubypitaya_spec_helper.rb
rubypitaya-3.0.3 ./lib/rubypitaya/core/spec-helpers/rubypitaya_spec_helper.rb
rubypitaya-3.0.2 ./lib/rubypitaya/core/spec-helpers/rubypitaya_spec_helper.rb
rubypitaya-3.0.1 ./lib/rubypitaya/core/spec-helpers/rubypitaya_spec_helper.rb
rubypitaya-3.0.0 ./lib/rubypitaya/core/spec-helpers/rubypitaya_spec_helper.rb
rubypitaya-2.27.1 ./lib/rubypitaya/core/spec-helpers/rubypitaya_spec_helper.rb