Sha256: 3c354f9e3f6ffe4315759960400e89b7d36ec687ef06e9e925032d5c613b254d

Contents?: true

Size: 637 Bytes

Versions: 117

Compression:

Stored size: 637 Bytes

Contents

require 'spec_helper'
require 'net/http'
require 'uri'

describe CcApiStub::Login do
  describe '.succeeds_to_find_uaa' do
    let(:host) { 'http://example.com:8181' }
    let(:url) { host + "/info" }
    subject { CcApiStub::Login.succeeds_to_find_uaa(host) }

    it_behaves_like "a stubbed get request", :including_json => {'token_endpoint' => 'https://uaa.localhost'}
  end

  describe '.succeeds_to_login_as_admin' do
    let(:url) { "http://uaa.localhost/oauth/authorize" }
    subject { CcApiStub::Login::succeeds_to_login_as_admin }

    it_behaves_like "a stubbed post request", :code => 302, :ignore_response => true
  end
end

Version data entries

117 entries across 117 versions & 3 rubygems

Version Path
cfoundry-1.2.0 spec/cc_api_stub/login_spec.rb
cfoundry-1.1.0.rc4 spec/cc_api_stub/login_spec.rb
cfoundry-1.1.0.rc3 spec/cc_api_stub/login_spec.rb
cfoundry-1.1.0.rc2 spec/cc_api_stub/login_spec.rb
cfoundry-1.1.0.rc1 spec/cc_api_stub/login_spec.rb
cfoundry-1.0.0 spec/cc_api_stub/login_spec.rb
cfoundry-0.7.0.rc15 spec/cc_api_stub/login_spec.rb
cfoundry-0.7.0.rc14 spec/cc_api_stub/login_spec.rb
cfoundry-0.7.0.rc13 spec/cc_api_stub/login_spec.rb
cfoundry-0.7.0.rc12 spec/cc_api_stub/login_spec.rb
cfoundry-0.7.0.rc11 spec/cc_api_stub/login_spec.rb
cfoundry-0.7.0.rc10 spec/cc_api_stub/login_spec.rb
cfoundry-0.7.0.rc9 spec/cc_api_stub/login_spec.rb
cfoundry-0.7.0.rc8 spec/cc_api_stub/login_spec.rb
cfoundry-0.7.0.rc6 spec/cc_api_stub/login_spec.rb
cfoundry-0.7.0.rc5 spec/cc_api_stub/login_spec.rb
cfoundry-0.7.0.rc4 spec/cc_api_stub/login_spec.rb
cfoundry-0.7.0.rc3 spec/cc_api_stub/login_spec.rb
cfoundry-0.7.0.rc2 spec/cc_api_stub/login_spec.rb
cfoundry-0.7.0.rc1 spec/cc_api_stub/login_spec.rb