Sha256: b87a490ca72e7a24e62474f48634f5f180d88a29d2678480bec0bc25f39280a4

Contents?: true

Size: 702 Bytes

Versions: 7

Compression:

Stored size: 702 Bytes

Contents

# frozen_string_literal: true
require 'rspeckled'
require 'drillbit/authorizers/query'

module    Drillbit
module    Authorizers
describe  Query do
  it 'does not authorize the resource by default' do
    authorizer = Query.new(token:    '123',
                           user:     'my_user',
                           issuer:   'my_issuer',
                           resource: 'my_resource',
                           params:   'my_params')

    expect(authorizer).not_to be_able_to_index
    expect(authorizer).not_to be_able_to_show
    expect(authorizer).not_to be_able_to_create
    expect(authorizer).not_to be_able_to_update
    expect(authorizer).not_to be_able_to_destroy
  end
end
end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
drillbit-2.10.0 spec/drillbit/authorizers/query_spec.rb
drillbit-2.9.1 spec/drillbit/authorizers/query_spec.rb
drillbit-2.9.0 spec/drillbit/authorizers/query_spec.rb
drillbit-2.8.0 spec/drillbit/authorizers/query_spec.rb
drillbit-2.7.0 spec/drillbit/authorizers/query_spec.rb
drillbit-2.6.0 spec/drillbit/authorizers/query_spec.rb
drillbit-2.5.0 spec/drillbit/authorizers/query_spec.rb