Sha256: 57f73a77c954404b5caf6fe922ae192446dbd3cec0267796d77461e7bed37899
Contents?: true
Size: 652 Bytes
Versions: 9
Compression:
Stored size: 652 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', 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
9 entries across 9 versions & 1 rubygems