Sha256: 9da115ded7fbe05ee07e3f799055a2da05b6555026d579150f16105a828a92f3

Contents?: true

Size: 553 Bytes

Versions: 2

Compression:

Stored size: 553 Bytes

Contents

# Configure Rails Environment
ENV["RAILS_ENV"] = "test"

require_relative "../spec/dummy/config/environment"
ActiveRecord::Migrator.migrations_paths = [File.expand_path("../spec/dummy/db/migrate", __dir__)]
ActiveRecord::Migration.maintain_test_schema!

require "rspec/rails"

RSpec.configure do |config|
  config.after(:each) do
    ActsAsTenant.current_tenant = nil
  end

  config.fixture_path = "spec/fixtures"
  config.global_fixtures = :all
  config.use_transactional_fixtures = true
  config.infer_base_class_for_anonymous_controllers = true
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
acts_as_tenant-0.5.1 spec/spec_helper.rb
acts_as_tenant-0.5.0 spec/spec_helper.rb