bamboo-client 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.travis.yml +1 -0
- data/lib/bamboo-client/rest.rb +4 -0
- data/lib/bamboo-client/version.rb +1 -1
- data/spec/bamboo-client/rest_spec.rb +9 -0
- metadata +2 -2
data/.travis.yml
CHANGED
data/lib/bamboo-client/rest.rb
CHANGED
@@ -57,6 +57,15 @@ module Bamboo
|
|
57
57
|
client.results_for("SOME-KEY").should == %w[foo bar]
|
58
58
|
end
|
59
59
|
|
60
|
+
it "should be able to fetch a plan for a specific key" do
|
61
|
+
document.should_receive(:data).and_return('some' => 'data')
|
62
|
+
|
63
|
+
http.should_receive(:get).with("/rest/api/latest/plan/SOME-KEY", nil, nil).
|
64
|
+
and_return(document)
|
65
|
+
|
66
|
+
client.plan_for("SOME-KEY").should be_kind_of(Rest::Plan)
|
67
|
+
end
|
68
|
+
|
60
69
|
describe Rest::Plan do
|
61
70
|
let(:data) { json_fixture("plan") }
|
62
71
|
let(:plan) { Rest::Plan.new data, http }
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bamboo-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2012-06
|
13
|
+
date: 2012-09-06 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rspec
|