pivotal-tracker 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -1
- data/VERSION +1 -1
- data/lib/pivotal-tracker/iteration.rb +10 -0
- data/pivotal-tracker.gemspec +4 -2
- data/spec/fixtures/activity.xml +139 -109
- data/spec/fixtures/created_story.xml +4 -4
- data/spec/fixtures/iterations_all.xml +2 -2
- data/spec/fixtures/iterations_backlog.xml +94 -0
- data/spec/fixtures/iterations_current.xml +2 -2
- data/spec/fixtures/iterations_done.xml +42 -0
- data/spec/fixtures/project.xml +1 -1
- data/spec/fixtures/project_activity.xml +69 -70
- data/spec/fixtures/projects.xml +187 -8
- data/spec/fixtures/stale_fish.yml +24 -10
- data/spec/fixtures/stories.xml +66 -1
- data/spec/support/stale_fish_fixtures.rb +8 -0
- data/spec/unit/pivotal-tracker/iteration_spec.rb +20 -0
- metadata +5 -3
data/spec/fixtures/stories.xml
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<stories type="array" count="
|
2
|
+
<stories type="array" count="15" limit="20" total="15">
|
3
3
|
<story>
|
4
4
|
<id type="integer">2606200</id>
|
5
5
|
<project_id type="integer">59022</project_id>
|
@@ -81,6 +81,71 @@
|
|
81
81
|
<updated_at type="datetime">2010/03/01 15:51:05 MST</updated_at>
|
82
82
|
<labels>test_dependent</labels>
|
83
83
|
</story>
|
84
|
+
<story>
|
85
|
+
<id type="integer">3256963</id>
|
86
|
+
<project_id type="integer">59022</project_id>
|
87
|
+
<story_type>feature</story_type>
|
88
|
+
<url>http://www.pivotaltracker.com/story/show/3256963</url>
|
89
|
+
<estimate type="integer">-1</estimate>
|
90
|
+
<current_state>unscheduled</current_state>
|
91
|
+
<description></description>
|
92
|
+
<name>Create stuff</name>
|
93
|
+
<requested_by>Justin Smestad</requested_by>
|
94
|
+
<created_at type="datetime">2010/04/22 12:02:23 MDT</created_at>
|
95
|
+
<updated_at type="datetime">2010/04/22 12:02:23 MDT</updated_at>
|
96
|
+
</story>
|
97
|
+
<story>
|
98
|
+
<id type="integer">3256889</id>
|
99
|
+
<project_id type="integer">59022</project_id>
|
100
|
+
<story_type>feature</story_type>
|
101
|
+
<url>http://www.pivotaltracker.com/story/show/3256889</url>
|
102
|
+
<estimate type="integer">-1</estimate>
|
103
|
+
<current_state>unscheduled</current_state>
|
104
|
+
<description></description>
|
105
|
+
<name>Create stuff</name>
|
106
|
+
<requested_by>Justin Smestad</requested_by>
|
107
|
+
<created_at type="datetime">2010/04/22 11:55:50 MDT</created_at>
|
108
|
+
<updated_at type="datetime">2010/04/22 11:55:50 MDT</updated_at>
|
109
|
+
</story>
|
110
|
+
<story>
|
111
|
+
<id type="integer">3256865</id>
|
112
|
+
<project_id type="integer">59022</project_id>
|
113
|
+
<story_type>feature</story_type>
|
114
|
+
<url>http://www.pivotaltracker.com/story/show/3256865</url>
|
115
|
+
<estimate type="integer">-1</estimate>
|
116
|
+
<current_state>unscheduled</current_state>
|
117
|
+
<description></description>
|
118
|
+
<name>Create stuff</name>
|
119
|
+
<requested_by>Justin Smestad</requested_by>
|
120
|
+
<created_at type="datetime">2010/04/22 11:53:25 MDT</created_at>
|
121
|
+
<updated_at type="datetime">2010/04/22 11:53:25 MDT</updated_at>
|
122
|
+
</story>
|
123
|
+
<story>
|
124
|
+
<id type="integer">3200814</id>
|
125
|
+
<project_id type="integer">59022</project_id>
|
126
|
+
<story_type>feature</story_type>
|
127
|
+
<url>http://www.pivotaltracker.com/story/show/3200814</url>
|
128
|
+
<estimate type="integer">-1</estimate>
|
129
|
+
<current_state>unscheduled</current_state>
|
130
|
+
<description></description>
|
131
|
+
<name>Create stuff</name>
|
132
|
+
<requested_by>Justin Smestad</requested_by>
|
133
|
+
<created_at type="datetime">2010/04/18 16:20:38 MDT</created_at>
|
134
|
+
<updated_at type="datetime">2010/04/18 16:20:38 MDT</updated_at>
|
135
|
+
</story>
|
136
|
+
<story>
|
137
|
+
<id type="integer">3017712</id>
|
138
|
+
<project_id type="integer">59022</project_id>
|
139
|
+
<story_type>feature</story_type>
|
140
|
+
<url>http://www.pivotaltracker.com/story/show/3017712</url>
|
141
|
+
<estimate type="integer">-1</estimate>
|
142
|
+
<current_state>unscheduled</current_state>
|
143
|
+
<description></description>
|
144
|
+
<name>Create stuff</name>
|
145
|
+
<requested_by>Justin Smestad</requested_by>
|
146
|
+
<created_at type="datetime">2010/04/01 11:06:18 MDT</created_at>
|
147
|
+
<updated_at type="datetime">2010/04/01 11:06:18 MDT</updated_at>
|
148
|
+
</story>
|
84
149
|
<story>
|
85
150
|
<id type="integer">3014429</id>
|
86
151
|
<project_id type="integer">59022</project_id>
|
@@ -37,6 +37,14 @@ module StaleFishFixtures
|
|
37
37
|
connection["/projects/59022/iterations/current"].get
|
38
38
|
end
|
39
39
|
|
40
|
+
def update_iterations_backlog_fixture
|
41
|
+
connection["/projects/59022/iterations/backlog"].get
|
42
|
+
end
|
43
|
+
|
44
|
+
def update_iterations_done_fixture
|
45
|
+
connection["/projects/59022/iterations/done"].get
|
46
|
+
end
|
47
|
+
|
40
48
|
def create_new_story
|
41
49
|
connection["/projects/59022/stories"].post("<story><name>Create stuff</name></story>", :content_type => 'application/xml')
|
42
50
|
end
|
@@ -26,5 +26,25 @@ describe PivotalTracker::Iteration do
|
|
26
26
|
end
|
27
27
|
end
|
28
28
|
|
29
|
+
describe ".backlog" do
|
30
|
+
before do
|
31
|
+
@iteration = PivotalTracker::Iteration.backlog(@project)
|
32
|
+
end
|
33
|
+
|
34
|
+
it "should return an array of Iterations for the given Project" do
|
35
|
+
@iteration.should be_a(PivotalTracker::Iteration)
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
describe ".done" do
|
40
|
+
before do
|
41
|
+
@iteration = PivotalTracker::Iteration.backlog(@project)
|
42
|
+
end
|
43
|
+
|
44
|
+
it "should return an array of Iterations for the given Project" do
|
45
|
+
@iteration.should be_a(PivotalTracker::Iteration)
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
29
49
|
end
|
30
50
|
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
8
|
+
- 2
|
9
|
+
version: 0.1.2
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Justin Smestad
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2010-04-
|
19
|
+
date: 2010-04-28 00:00:00 -06:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
@@ -105,7 +105,9 @@ files:
|
|
105
105
|
- spec/fixtures/activity.xml
|
106
106
|
- spec/fixtures/created_story.xml
|
107
107
|
- spec/fixtures/iterations_all.xml
|
108
|
+
- spec/fixtures/iterations_backlog.xml
|
108
109
|
- spec/fixtures/iterations_current.xml
|
110
|
+
- spec/fixtures/iterations_done.xml
|
109
111
|
- spec/fixtures/memberships.xml
|
110
112
|
- spec/fixtures/project.xml
|
111
113
|
- spec/fixtures/project_activity.xml
|