Sha256: 234dab0e764b9d610f26b014bdd497f6ad99ed4699d81d99b3c5216958f21493
Contents?: true
Size: 949 Bytes
Versions: 3
Compression:
Stored size: 949 Bytes
Contents
require "spec_helper" describe Vault::Rails::Configurable do subject do Class.new.tap do |c| c.class.instance_eval do include Vault::Rails::Configurable end end end describe '.in_memory_warnings_enabled?' do context 'when unconfigured' do it 'returns true' do expect(subject.in_memory_warnings_enabled?).to eq true end end context 'when configured as on' do before do subject.configure do |vault| vault.in_memory_warnings_enabled = true end end it 'returns true' do expect(subject.in_memory_warnings_enabled?).to eq true end end context 'when configured as off' do before do subject.configure do |vault| vault.in_memory_warnings_enabled = false end end it 'returns false' do expect(subject.in_memory_warnings_enabled?).to eq false end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
vault-rails-0.5.0 | spec/unit/rails/configurable_spec.rb |
vault-rails-0.4.0 | spec/unit/rails/configurable_spec.rb |
vault-rails-0.3.2 | spec/unit/rails/configurable_spec.rb |