Sha256: 4bf5a2e2a0db67b3a247714631b03fa6529f5bb51eb2fb0ac06c6d044eb49fc1

Contents?: true

Size: 426 Bytes

Versions: 4

Compression:

Stored size: 426 Bytes

Contents

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

module          Drillbit
module          Authorizers
RSpec.describe  Parameters do
  it 'defaults to nothing' do
    parameters = Parameters.new(token:  '123',
                                user:   'my_user',
                                params: { foo: 'bar' })

    expect(parameters.call).to eql(foo: 'bar')
  end
end
end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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