Sha256: 35f8d0eb299021f5d4cb9233067a7b5655af9b27956b82d0cb0f43d312aec938

Contents?: true

Size: 294 Bytes

Versions: 7

Compression:

Stored size: 294 Bytes

Contents

# frozen_string_literal: true

RSpec.describe Authorizy::Config, '#cop' do
  let!(:config) { described_class.new }

  it 'has default value and can receive a new one' do
    expect(config.cop).to eq(Authorizy::BaseCop)

    config.cop = 'value'

    expect(config.cop).to eq('value')
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
authorizy-0.5.0 spec/authorizy/config/cop_spec.rb
authorizy-0.4.1 spec/authorizy/config/cop_spec.rb
authorizy-0.4.0 spec/authorizy/config/cop_spec.rb
authorizy-0.3.0 spec/authorizy/config/cop_spec.rb
authorizy-0.2.2 spec/authorizy/config/cop_spec.rb
authorizy-0.2.1 spec/authorizy/config/cop_spec.rb
authorizy-0.2.0 spec/authorizy/config/cop_spec.rb