cf-uaa-lib 1.3.9 → 1.3.10
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/lib/uaa/misc.rb +1 -1
- data/lib/uaa/version.rb +1 -1
- data/spec/misc_spec.rb +9 -0
- metadata +3 -3
data/.gitignore
CHANGED
data/lib/uaa/misc.rb
CHANGED
data/lib/uaa/version.rb
CHANGED
data/spec/misc_spec.rb
CHANGED
@@ -68,6 +68,15 @@ module CF::UAA
|
|
68
68
|
result.should == "https://uaa.cloudfoundry.com"
|
69
69
|
end
|
70
70
|
|
71
|
+
context "when there is no 'links' key present" do
|
72
|
+
let(:response_body) { '{ "prompts" : ["one","two"]} ' }
|
73
|
+
|
74
|
+
it "returns the login url" do
|
75
|
+
result = Misc.discover_uaa("https://login.cloudfoundry.com")
|
76
|
+
result.should == "https://login.cloudfoundry.com"
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
71
80
|
context "with symbol keys" do
|
72
81
|
around do |example|
|
73
82
|
CF::UAA::Misc.symbolize_keys = true
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cf-uaa-lib
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 15
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 1.3.
|
9
|
+
- 10
|
10
|
+
version: 1.3.10
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Dave Syer
|