Sha256: c4982776451e426a9e7c976a446f5c81346ce9639555b7c7d070537a60488683
Contents?: true
Size: 865 Bytes
Versions: 2
Compression:
Stored size: 865 Bytes
Contents
require 'test_helper' describe PrxAuth::Rails::Configuration do after(:each) { PrxAuth::Rails.configuration = PrxAuth::Rails::Configuration.new } subject { PrxAuth::Rails::Configuration.new } it 'initializes with a namespace defined by rails app name' do assert subject.namespace == :test_app end it 'can be reconfigured using the namespace attr' do PrxAuth::Rails.configure do |config| config.namespace = :new_test end assert PrxAuth::Rails.configuration.namespace == :new_test end it 'defaults to enabling the middleware' do assert PrxAuth::Rails.configuration.install_middleware end it 'allows overriding of the middleware automatic installation' do PrxAuth::Rails.configure do |config| config.install_middleware = false end assert !PrxAuth::Rails.configuration.install_middleware end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
prx_auth-rails-1.2.0 | test/prx_auth/rails/configuration_test.rb |
prx_auth-rails-1.0.0 | test/prx_auth/rails/configuration_test.rb |