Sha256: ff4672914f46d1f25317633e1288c7a3ea8e6b7839d7780a92f54a2cfa09ba41

Contents?: true

Size: 620 Bytes

Versions: 1

Compression:

Stored size: 620 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')

    expect(authorizer).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

1 entries across 1 versions & 1 rubygems

Version Path
drillbit-0.0.1 spec/drillbit/authorizers/query_spec.rb