Sha256: 429c64e127681aa70d8b3c692eaf7ba6b86bc3b4f78bbc25af2a0ab3c4ef5ea8

Contents?: true

Size: 559 Bytes

Versions: 9

Compression:

Stored size: 559 Bytes

Contents

require 'spec_helper'

describe ActsAsTenant::Configuration do
  describe 'no configuration given' do
    before do
      ActsAsTenant.configure
    end

    it 'provides defaults' do
      expect(ActsAsTenant.configuration.require_tenant).not_to be_truthy
    end
  end

  describe 'with config block' do
    after do
      ActsAsTenant.configure
    end

    it 'stores config' do
      ActsAsTenant.configure do |config|
        config.require_tenant = true
      end

      expect(ActsAsTenant.configuration.require_tenant).to eq(true)
    end

  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
acts_as_tenant-0.4.4 spec/acts_as_tenant/configuration_spec.rb
acts_as_tenant-0.4.3 spec/acts_as_tenant/configuration_spec.rb
acts_as_tenant-0.4.2 spec/acts_as_tenant/configuration_spec.rb
acts_as_tenant-0.4.1 spec/acts_as_tenant/configuration_spec.rb
acts_as_tenant-0.4.0 spec/acts_as_tenant/configuration_spec.rb
acts_as_tenant-0.3.9 spec/acts_as_tenant/configuration_spec.rb
acts_as_tenant-0.3.8 spec/acts_as_tenant/configuration_spec.rb
acts_as_tenant-0.3.7 spec/acts_as_tenant/configuration_spec.rb
acts_as_tenant-0.3.6 spec/acts_as_tenant/configuration_spec.rb