Sha256: 41703eb49d611612dca91c84027a92119cc08a99370568cf2aac5342adc8670b

Contents?: true

Size: 684 Bytes

Versions: 4

Compression:

Stored size: 684 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(:suite) do
    RubyPitaya::HandlerSpecHelper.initialize_before_suite
  end

  config.after(:suite) do
    RubyPitaya::HandlerSpecHelper.finalize_after_suite
  end

  config.before(:each) do
    RubyPitaya::HandlerSpecHelper.update_before_each
    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

4 entries across 4 versions & 1 rubygems

Version Path
rubypitaya-3.8.1 ./lib/rubypitaya/core/spec-helpers/rubypitaya_spec_helper.rb
rubypitaya-3.8.0 ./lib/rubypitaya/core/spec-helpers/rubypitaya_spec_helper.rb
rubypitaya-3.7.0 ./lib/rubypitaya/core/spec-helpers/rubypitaya_spec_helper.rb
rubypitaya-3.6.0 ./lib/rubypitaya/core/spec-helpers/rubypitaya_spec_helper.rb