Sha256: ca5a222106fba18fb2152ca362a4b917df16785d52b049a16414112a8cd92354

Contents?: true

Size: 656 Bytes

Versions: 99

Compression:

Stored size: 656 Bytes

Contents

require 'spec_helper'

describe OpenIDConnect::HttpError do
  subject do
    OpenIDConnect::HttpError.new 400, 'Bad Request'
  end
  its(:status)   { should == 400 }
  its(:message)  { should == 'Bad Request' }
  its(:response) { should be_nil }
end

describe OpenIDConnect::BadRequest do
  its(:status)  { should == 400 }
  its(:message) { should == 'OpenIDConnect::BadRequest' }
end

describe OpenIDConnect::Unauthorized do
  its(:status)  { should == 401 }
  its(:message) { should == 'OpenIDConnect::Unauthorized' }
end

describe OpenIDConnect::Forbidden do
  its(:status)  { should == 403 }
  its(:message) { should == 'OpenIDConnect::Forbidden' }
end

Version data entries

99 entries across 99 versions & 1 rubygems

Version Path
openid_connect-2.3.1 spec/openid_connect/exception_spec.rb
openid_connect-2.3.0 spec/openid_connect/exception_spec.rb
openid_connect-2.2.1 spec/openid_connect/exception_spec.rb
openid_connect-2.2.0 spec/openid_connect/exception_spec.rb
openid_connect-2.1.0 spec/openid_connect/exception_spec.rb
openid_connect-2.0.0 spec/openid_connect/exception_spec.rb
openid_connect-2.0.0.rc1 spec/openid_connect/exception_spec.rb
openid_connect-1.4.2 spec/openid_connect/exception_spec.rb
openid_connect-1.4.1 spec/openid_connect/exception_spec.rb
openid_connect-1.4.0 spec/openid_connect/exception_spec.rb
openid_connect-1.3.1 spec/openid_connect/exception_spec.rb
openid_connect-1.3.0 spec/openid_connect/exception_spec.rb
openid_connect-1.2.0 spec/openid_connect/exception_spec.rb
openid_connect-1.1.8 spec/openid_connect/exception_spec.rb
openid_connect-1.1.7 spec/openid_connect/exception_spec.rb
openid_connect-1.1.6 spec/openid_connect/exception_spec.rb
openid_connect-1.1.5 spec/openid_connect/exception_spec.rb
openid_connect-1.1.4 spec/openid_connect/exception_spec.rb
openid_connect-1.1.3 spec/openid_connect/exception_spec.rb
openid_connect-1.1.2 spec/openid_connect/exception_spec.rb