Sha256: 13f139e00adb538079f006bab9844080cc4f0b939eb47d49722d37188c3ae93f

Contents?: true

Size: 649 Bytes

Versions: 3

Compression:

Stored size: 649 Bytes

Contents

$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__))

$orm = ENV["ORM"] || "active_record"
require "#{$orm}_helper"

require 'rspec/rails'
require 'acts_as_tenant'

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

# Setup a test app
module Rollcall
  class Application < Rails::Application; end
end

Rollcall::Application.config.secret_token = '1234567890123456789012345678901234567890'
Rollcall::Application.config.secret_key_base = '1234567890123456789012345678901234567890'

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
acts_as_tenant-0.4.0 spec/spec_helper.rb
acts_as_tenant-0.3.9 spec/spec_helper.rb
acts_as_tenant-0.3.8 spec/spec_helper.rb