Sha256: 18c382f26fc2f44093c4dfa8f1c1c35802a82760ed7434cfe050868aa18774e9

Contents?: true

Size: 392 Bytes

Versions: 22

Compression:

Stored size: 392 Bytes

Contents

require 'spec_helper'

require 'certmeister/policy/noop'

describe Certmeister::Policy::Noop do

  it "demands a request" do
    expect { subject.authenticate }.to raise_error(ArgumentError)
  end

  it "authenticates any non-empty request" do
    response = subject.authenticate(anything: 'something')
    expect(response).to be_authenticated
    expect(response.error).to be_nil
  end

end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
certmeister-2.3.2 spec/certmeister/policy/noop_spec.rb
certmeister-2.3.1 spec/certmeister/policy/noop_spec.rb
certmeister-2.3.0 spec/certmeister/policy/noop_spec.rb
certmeister-2.2.0 spec/certmeister/policy/noop_spec.rb
certmeister-2.1.0 spec/certmeister/policy/noop_spec.rb
certmeister-2.0.0 spec/certmeister/policy/noop_spec.rb
certmeister-1.2.1 spec/certmeister/policy/noop_spec.rb
certmeister-1.2.0 spec/certmeister/policy/noop_spec.rb
certmeister-1.1.0 spec/certmeister/policy/noop_spec.rb
certmeister-1.0.1 spec/certmeister/policy/noop_spec.rb
certmeister-1.0.0 spec/certmeister/policy/noop_spec.rb
certmeister-0.4.1 spec/certmeister/policy/noop_spec.rb
certmeister-0.4.0 spec/certmeister/policy/noop_spec.rb
certmeister-0.3.2 spec/certmeister/policy/noop_spec.rb
certmeister-0.3.1 spec/certmeister/policy/noop_spec.rb
certmeister-0.3.0 spec/certmeister/policy/noop_spec.rb
certmeister-0.2.3 spec/certmeister/policy/noop_spec.rb
certmeister-0.2.1 spec/certmeister/policy/noop_spec.rb
certmeister-0.2.0 spec/certmeister/policy/noop_spec.rb
certmeister-0.1.0 spec/certmeister/policy/noop_spec.rb