Sha256: 6734103683de853c59ef7ea88843b76b4b23dcf9da8864c0bff301f6d7c1f870

Contents?: true

Size: 664 Bytes

Versions: 21

Compression:

Stored size: 664 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.clear_active_connections!
  end
end

Version data entries

21 entries across 17 versions & 1 rubygems

Version Path
rubypitaya-3.16.0 ./lib/rubypitaya/core/spec-helpers/rubypitaya_spec_helper.rb
rubypitaya-3.15.3 ./lib/rubypitaya/core/spec-helpers/rubypitaya_spec_helper.rb
rubypitaya-3.15.2 ./lib/rubypitaya/core/spec-helpers/rubypitaya_spec_helper.rb
rubypitaya-3.15.1 ./lib/rubypitaya/core/spec-helpers/rubypitaya_spec_helper.rb
rubypitaya-3.15.0 ./lib/rubypitaya/core/spec-helpers/rubypitaya_spec_helper.rb
rubypitaya-3.14.0 ./lib/rubypitaya/core/spec-helpers/rubypitaya_spec_helper.rb
rubypitaya-3.13.1 ./lib/rubypitaya/core/spec-helpers/rubypitaya_spec_helper.rb
rubypitaya-3.13.0 ./lib/rubypitaya/core/spec-helpers/rubypitaya_spec_helper.rb
rubypitaya-3.12.5 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rubypitaya-3.12.1/lib/rubypitaya/core/spec-helpers/rubypitaya_spec_helper.rb
rubypitaya-3.12.5 ./lib/rubypitaya/core/spec-helpers/rubypitaya_spec_helper.rb
rubypitaya-3.12.4 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rubypitaya-3.12.1/lib/rubypitaya/core/spec-helpers/rubypitaya_spec_helper.rb
rubypitaya-3.12.4 ./lib/rubypitaya/core/spec-helpers/rubypitaya_spec_helper.rb
rubypitaya-3.12.3 ./lib/rubypitaya/core/spec-helpers/rubypitaya_spec_helper.rb
rubypitaya-3.12.3 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rubypitaya-3.12.1/lib/rubypitaya/core/spec-helpers/rubypitaya_spec_helper.rb
rubypitaya-3.12.2 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rubypitaya-3.12.1/lib/rubypitaya/core/spec-helpers/rubypitaya_spec_helper.rb
rubypitaya-3.12.2 ./lib/rubypitaya/core/spec-helpers/rubypitaya_spec_helper.rb
rubypitaya-3.12.1 ./lib/rubypitaya/core/spec-helpers/rubypitaya_spec_helper.rb
rubypitaya-3.12.0 ./lib/rubypitaya/core/spec-helpers/rubypitaya_spec_helper.rb
rubypitaya-3.11.0 ./lib/rubypitaya/core/spec-helpers/rubypitaya_spec_helper.rb
rubypitaya-3.10.0 ./lib/rubypitaya/core/spec-helpers/rubypitaya_spec_helper.rb