Sha256: 0992a62377a90599197cfe20df86a077a201e7900986bb96d77fa9741804bbfa

Contents?: true

Size: 458 Bytes

Versions: 49

Compression:

Stored size: 458 Bytes

Contents

require 'spec_helper'

describe OpenIDConnect::Discovery::Provider::Config::Resource do
  let(:resource) do
    uri = URI.parse 'http://server.example.com'
    OpenIDConnect::Discovery::Provider::Config::Resource.new uri
  end

  describe '#endpoint' do
    context 'when invalid host' do
      before do
        resource.host = 'hoge*hoge'
      end

      it do
        expect { resource.endpoint }.to raise_error SWD::Exception
      end
    end
  end
end

Version data entries

49 entries across 49 versions & 1 rubygems

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