Sha256: fe77686f647387190f5c3bbece87b6f2d399ac78427ef92d9668d3339c202f24

Contents?: true

Size: 309 Bytes

Versions: 7

Compression:

Stored size: 309 Bytes

Contents

# frozen_string_literal: true

RSpec.describe Authorizy::BaseCop, '#access?' do
  let!(:params) { { 'controller' => 'controller', 'action' => 'action' } }
  let(:cop) { described_class.new('current_user', params, 'session') }

  it 'returns false as default' do
    expect(cop.access?).to be(false)
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
authorizy-0.5.0 spec/authorizy/base_cop/access_question_spec.rb
authorizy-0.4.1 spec/authorizy/base_cop/access_question_spec.rb
authorizy-0.4.0 spec/authorizy/base_cop/access_question_spec.rb
authorizy-0.3.0 spec/authorizy/base_cop/access_question_spec.rb
authorizy-0.2.2 spec/authorizy/base_cop/access_question_spec.rb
authorizy-0.2.1 spec/authorizy/base_cop/access_question_spec.rb
authorizy-0.2.0 spec/authorizy/base_cop/access_question_spec.rb