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-0.7.1 spec/openid_connect/exception_spec.rb
openid_connect-0.7.0 spec/openid_connect/exception_spec.rb
openid_connect-0.6.1 spec/openid_connect/exception_spec.rb
openid_connect-0.6.0 spec/openid_connect/exception_spec.rb
openid_connect-0.5.1 spec/openid_connect/exception_spec.rb
openid_connect-0.5.0 spec/openid_connect/exception_spec.rb
openid_connect-0.4.1 spec/openid_connect/exception_spec.rb
openid_connect-0.4.0 spec/openid_connect/exception_spec.rb
openid_connect-0.3.7 spec/openid_connect/exception_spec.rb
openid_connect-0.3.6 spec/openid_connect/exception_spec.rb
openid_connect-0.3.5 spec/openid_connect/exception_spec.rb
openid_connect-0.3.4 spec/openid_connect/exception_spec.rb
openid_connect-0.3.3 spec/openid_connect/exception_spec.rb
openid_connect-0.3.2 spec/openid_connect/exception_spec.rb
openid_connect-0.3.1 spec/openid_connect/exception_spec.rb
openid_connect-0.3.0 spec/openid_connect/exception_spec.rb
openid_connect-0.2.4 spec/openid_connect/exception_spec.rb
openid_connect-0.2.3 spec/openid_connect/exception_spec.rb
openid_connect-0.2.2 spec/openid_connect/exception_spec.rb
openid_connect-0.2.1 spec/openid_connect/exception_spec.rb