Sha256: ab7ba667e0afda144a60eeda489faf516eaa6304f6dcf6d436646f7637105b6c

Contents?: true

Size: 776 Bytes

Versions: 7

Compression:

Stored size: 776 Bytes

Contents

describe Authz do

  describe '.force_authentication_method=' do
    it 'should allow the modification of the force_authentication_method configuration variable' do
      prev = described_class.force_authentication_method
      described_class.force_authentication_method = :foo
      expect(described_class.force_authentication_method).to eq :foo
      described_class.force_authentication_method = prev
    end
  end

  describe '.current_user_method=' do
    it 'should allow the modification of the current_user_method configuration variable' do
      prev = described_class.current_user_method
      described_class.current_user_method = :foo
      expect(described_class.current_user_method).to eq :foo
      described_class.current_user_method = prev
    end
  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
authz-0.0.5 spec/lib/authz_spec.rb
authz-0.0.4 spec/lib/authz_spec.rb
authz-0.0.3 spec/lib/authz_spec.rb
authz-0.0.2 spec/lib/authz_spec.rb
authz-0.0.1 spec/lib/authz_spec.rb
authz-0.0.1.alpha5 spec/lib/authz_spec.rb
authz-0.0.1.alpha4 spec/lib/authz_spec.rb