Sha256: 5bd27498f085d6ab44e0324035907e0c93fce8a1414305456f82633e72b45291

Contents?: true

Size: 683 Bytes

Versions: 11

Compression:

Stored size: 683 Bytes

Contents

require 'rspec'

ENV['RUBYPITAYA_ENV'] = 'test'

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

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

  config.before(:suite) do
    RubyPitaya::AppSpecHelper.initialize_before_suite
  end

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

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

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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
rubypitaya-3.19.6 ./lib/rubypitaya/core/spec-helpers/rubypitaya_spec_helper.rb
rubypitaya-3.19.5 ./lib/rubypitaya/core/spec-helpers/rubypitaya_spec_helper.rb
rubypitaya-3.19.4 ./lib/rubypitaya/core/spec-helpers/rubypitaya_spec_helper.rb
rubypitaya-3.19.3 ./lib/rubypitaya/core/spec-helpers/rubypitaya_spec_helper.rb
rubypitaya-3.19.2 ./lib/rubypitaya/core/spec-helpers/rubypitaya_spec_helper.rb
rubypitaya-3.19.1 ./lib/rubypitaya/core/spec-helpers/rubypitaya_spec_helper.rb
rubypitaya-3.19.0 ./lib/rubypitaya/core/spec-helpers/rubypitaya_spec_helper.rb
rubypitaya-3.18.0 ./lib/rubypitaya/core/spec-helpers/rubypitaya_spec_helper.rb
rubypitaya-3.17.2 ./lib/rubypitaya/core/spec-helpers/rubypitaya_spec_helper.rb
rubypitaya-3.17.1 ./lib/rubypitaya/core/spec-helpers/rubypitaya_spec_helper.rb
rubypitaya-3.17.0 ./lib/rubypitaya/core/spec-helpers/rubypitaya_spec_helper.rb