Sha256: 41572cadd8b7b27f6026a4f3e587ec6aa7bc319a31156bb600c62cf9713e6e7c

Contents?: true

Size: 670 Bytes

Versions: 3

Compression:

Stored size: 670 Bytes

Contents

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

module          Drillbit
module          Authorizers
RSpec.describe  Query do
  it 'does not authorize the resource by default' do
    authorizer = Query.new(token:    '123',
                           user:     'my_user',
                           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

3 entries across 3 versions & 1 rubygems

Version Path
drillbit-1.1.0 spec/drillbit/authorizers/query_spec.rb
drillbit-1.0.1 spec/drillbit/authorizers/query_spec.rb
drillbit-1.0.0 spec/drillbit/authorizers/query_spec.rb