branston 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/branston/app/controllers/stories_controller.rb +104 -103
- data/lib/branston/coverage/app-controllers-application_controller_rb.html +1 -1
- data/lib/branston/coverage/app-controllers-iterations_controller_rb.html +107 -101
- data/lib/branston/coverage/app-controllers-outcomes_controller_rb.html +114 -102
- data/lib/branston/coverage/app-controllers-preconditions_controller_rb.html +54 -90
- data/lib/branston/coverage/app-controllers-releases_controller_rb.html +101 -89
- data/lib/branston/coverage/app-controllers-scenarios_controller_rb.html +94 -76
- data/lib/branston/coverage/app-controllers-sessions_controller_rb.html +60 -42
- data/lib/branston/coverage/app-controllers-stories_controller_rb.html +188 -110
- data/lib/branston/coverage/app-controllers-user_roles_controller_rb.html +123 -87
- data/lib/branston/coverage/app-controllers-users_controller_rb.html +39 -27
- data/lib/branston/coverage/app-helpers-application_helper_rb.html +26 -8
- data/lib/branston/coverage/app-helpers-iterations_helper_rb.html +1 -1
- data/lib/branston/coverage/app-helpers-outcomes_helper_rb.html +1 -1
- data/lib/branston/coverage/app-helpers-preconditions_helper_rb.html +1 -1
- data/lib/branston/coverage/app-helpers-releases_helper_rb.html +1 -1
- data/lib/branston/coverage/app-helpers-sessions_helper_rb.html +1 -1
- data/lib/branston/coverage/app-helpers-stories_helper_rb.html +1 -1
- data/lib/branston/coverage/app-helpers-user_roles_helper_rb.html +1 -1
- data/lib/branston/coverage/app-models-iteration_rb.html +1 -1
- data/lib/branston/coverage/app-models-outcome_rb.html +1 -1
- data/lib/branston/coverage/app-models-participation_rb.html +1 -1
- data/lib/branston/coverage/app-models-precondition_rb.html +9 -3
- data/lib/branston/coverage/app-models-release_rb.html +1 -1
- data/lib/branston/coverage/app-models-scenario_rb.html +3 -3
- data/lib/branston/coverage/app-models-story_rb.html +79 -7
- data/lib/branston/coverage/app-models-user_rb.html +1 -1
- data/lib/branston/coverage/app-models-user_role_rb.html +1 -1
- data/lib/branston/coverage/index.html +106 -90
- data/lib/branston/coverage/lib-client_rb.html +537 -0
- data/lib/branston/coverage/lib-faker_extras_rb.html +1 -1
- data/lib/branston/coverage/lib-story_generator_rb.html +43 -49
- data/lib/branston/db/test.sqlite3 +0 -0
- data/lib/branston/lib/branston.rb +5 -1
- data/lib/branston/lib/client.rb +48 -30
- data/lib/branston/test/functional/stories_controller_test.rb +119 -105
- data/lib/branston/test/unit/client_test.rb +34 -9
- data/lib/branston/tmp/performance/BrowsingTest#test_homepage_process_time_flat.txt +10 -0
- data/lib/branston/tmp/performance/BrowsingTest#test_homepage_process_time_graph.html +6603 -0
- data/lib/branston/tmp/performance/BrowsingTest#test_homepage_process_time_tree.txt +9714 -0
- metadata +6 -5
- data/lib/branston/db/production.sqlite3 +0 -0
- data/lib/branston/log/development.log +0 -10836
- data/lib/branston/log/test.log +0 -52955
@@ -28,8 +28,8 @@
|
|
28
28
|
<tbody>
|
29
29
|
<tr>
|
30
30
|
<td class="left_align"><a href="app-controllers-users_controller_rb.html">app/controllers/users_controller.rb</a></td>
|
31
|
-
<td class='right_align'><tt>
|
32
|
-
<td class='right_align'><tt>
|
31
|
+
<td class='right_align'><tt>28</tt></td>
|
32
|
+
<td class='right_align'><tt>19</tt></td>
|
33
33
|
<td class="left_align"><div class="percent_graph_legend"><tt class=''>100.00%</tt></div>
|
34
34
|
<div class="percent_graph">
|
35
35
|
<div class="covered" style="width:100px"></div>
|
@@ -68,152 +68,164 @@
|
|
68
68
|
|
69
69
|
|
70
70
|
|
71
|
+
<tr class="marked">
|
72
|
+
<td><pre><a name="line3">3</a> layout 'main'</pre></td>
|
73
|
+
</tr>
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
<tr class="inferred">
|
78
|
+
<td><pre><a name="line4">4</a> </pre></td>
|
79
|
+
</tr>
|
80
|
+
|
81
|
+
|
82
|
+
|
71
83
|
<tr class="inferred">
|
72
|
-
<td><pre><a name="
|
84
|
+
<td><pre><a name="line5">5</a> # render new.rhtml</pre></td>
|
73
85
|
</tr>
|
74
86
|
|
75
87
|
|
76
88
|
|
77
89
|
<tr class="marked">
|
78
|
-
<td><pre><a name="
|
90
|
+
<td><pre><a name="line6">6</a> def new</pre></td>
|
79
91
|
</tr>
|
80
92
|
|
81
93
|
|
82
94
|
|
83
95
|
<tr class="marked">
|
84
|
-
<td><pre><a name="
|
96
|
+
<td><pre><a name="line7">7</a> @user = User.new</pre></td>
|
85
97
|
</tr>
|
86
98
|
|
87
99
|
|
88
100
|
|
89
101
|
<tr class="inferred">
|
90
|
-
<td><pre><a name="
|
102
|
+
<td><pre><a name="line8">8</a> end</pre></td>
|
91
103
|
</tr>
|
92
104
|
|
93
105
|
|
94
106
|
|
95
107
|
<tr class="inferred">
|
96
|
-
<td><pre><a name="
|
108
|
+
<td><pre><a name="line9">9</a> </pre></td>
|
97
109
|
</tr>
|
98
110
|
|
99
111
|
|
100
112
|
|
101
113
|
<tr class="marked">
|
102
|
-
<td><pre><a name="
|
114
|
+
<td><pre><a name="line10">10</a> def create</pre></td>
|
103
115
|
</tr>
|
104
116
|
|
105
117
|
|
106
118
|
|
107
119
|
<tr class="marked">
|
108
|
-
<td><pre><a name="
|
120
|
+
<td><pre><a name="line11">11</a> logout_keeping_session!</pre></td>
|
109
121
|
</tr>
|
110
122
|
|
111
123
|
|
112
124
|
|
113
125
|
<tr class="marked">
|
114
|
-
<td><pre><a name="
|
126
|
+
<td><pre><a name="line12">12</a> @user = User.new(params[:user])</pre></td>
|
115
127
|
</tr>
|
116
128
|
|
117
129
|
|
118
130
|
|
119
131
|
<tr class="marked">
|
120
|
-
<td><pre><a name="
|
132
|
+
<td><pre><a name="line13">13</a> success = @user && @user.save</pre></td>
|
121
133
|
</tr>
|
122
134
|
|
123
135
|
|
124
136
|
|
125
137
|
<tr class="marked">
|
126
|
-
<td><pre><a name="
|
138
|
+
<td><pre><a name="line14">14</a> if success && @user.errors.empty?</pre></td>
|
127
139
|
</tr>
|
128
140
|
|
129
141
|
|
130
142
|
|
131
143
|
<tr class="inferred">
|
132
|
-
<td><pre><a name="
|
144
|
+
<td><pre><a name="line15">15</a> # Protects against session fixation attacks, causes request forgery</pre></td>
|
133
145
|
</tr>
|
134
146
|
|
135
147
|
|
136
148
|
|
137
149
|
<tr class="inferred">
|
138
|
-
<td><pre><a name="
|
150
|
+
<td><pre><a name="line16">16</a> # protection if visitor resubmits an earlier form using back</pre></td>
|
139
151
|
</tr>
|
140
152
|
|
141
153
|
|
142
154
|
|
143
155
|
<tr class="inferred">
|
144
|
-
<td><pre><a name="
|
156
|
+
<td><pre><a name="line17">17</a> # button. Uncomment if you understand the tradeoffs.</pre></td>
|
145
157
|
</tr>
|
146
158
|
|
147
159
|
|
148
160
|
|
149
161
|
<tr class="inferred">
|
150
|
-
<td><pre><a name="
|
162
|
+
<td><pre><a name="line18">18</a> # reset session</pre></td>
|
151
163
|
</tr>
|
152
164
|
|
153
165
|
|
154
166
|
|
155
167
|
<tr class="marked">
|
156
|
-
<td><pre><a name="
|
168
|
+
<td><pre><a name="line19">19</a> self.current_user = @user # !! now logged in</pre></td>
|
157
169
|
</tr>
|
158
170
|
|
159
171
|
|
160
172
|
|
161
173
|
<tr class="marked">
|
162
|
-
<td><pre><a name="
|
174
|
+
<td><pre><a name="line20">20</a> redirect_back_or_default('/')</pre></td>
|
163
175
|
</tr>
|
164
176
|
|
165
177
|
|
166
178
|
|
167
179
|
<tr class="marked">
|
168
|
-
<td><pre><a name="
|
180
|
+
<td><pre><a name="line21">21</a> flash[:notice] = "Thanks for signing up! We're sending you an email with your activation code."</pre></td>
|
169
181
|
</tr>
|
170
182
|
|
171
183
|
|
172
184
|
|
173
185
|
<tr class="inferred">
|
174
|
-
<td><pre><a name="
|
186
|
+
<td><pre><a name="line22">22</a> else</pre></td>
|
175
187
|
</tr>
|
176
188
|
|
177
189
|
|
178
190
|
|
179
191
|
<tr class="marked">
|
180
|
-
<td><pre><a name="
|
192
|
+
<td><pre><a name="line23">23</a> flash[:error] = "We couldn't set up that account, sorry. Please try again, or contact an admin (link is above)."</pre></td>
|
181
193
|
</tr>
|
182
194
|
|
183
195
|
|
184
196
|
|
185
197
|
<tr class="marked">
|
186
|
-
<td><pre><a name="
|
198
|
+
<td><pre><a name="line24">24</a> render :action => 'new'</pre></td>
|
187
199
|
</tr>
|
188
200
|
|
189
201
|
|
190
202
|
|
191
203
|
<tr class="inferred">
|
192
|
-
<td><pre><a name="
|
204
|
+
<td><pre><a name="line25">25</a> end</pre></td>
|
193
205
|
</tr>
|
194
206
|
|
195
207
|
|
196
208
|
|
197
209
|
<tr class="inferred">
|
198
|
-
<td><pre><a name="
|
210
|
+
<td><pre><a name="line26">26</a> end</pre></td>
|
199
211
|
</tr>
|
200
212
|
|
201
213
|
|
202
214
|
|
203
215
|
<tr class="inferred">
|
204
|
-
<td><pre><a name="
|
216
|
+
<td><pre><a name="line27">27</a> end</pre></td>
|
205
217
|
</tr>
|
206
218
|
|
207
219
|
|
208
220
|
|
209
221
|
<tr class="inferred">
|
210
|
-
<td><pre><a name="
|
222
|
+
<td><pre><a name="line28">28</a> </pre></td>
|
211
223
|
</tr>
|
212
224
|
|
213
225
|
</tbody>
|
214
226
|
</table>
|
215
227
|
|
216
|
-
<p>Generated on
|
228
|
+
<p>Generated on Wed Dec 09 15:45:10 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
|
217
229
|
|
218
230
|
</body>
|
219
231
|
</html>
|
@@ -28,7 +28,7 @@
|
|
28
28
|
<tbody>
|
29
29
|
<tr>
|
30
30
|
<td class="left_align"><a href="app-helpers-application_helper_rb.html">app/helpers/application_helper.rb</a></td>
|
31
|
-
<td class='right_align'><tt>
|
31
|
+
<td class='right_align'><tt>14</tt></td>
|
32
32
|
<td class='right_align'><tt>8</tt></td>
|
33
33
|
<td class="left_align"><div class="percent_graph_legend"><tt class=''>100.00%</tt></div>
|
34
34
|
<div class="percent_graph">
|
@@ -87,43 +87,61 @@
|
|
87
87
|
|
88
88
|
|
89
89
|
<tr class="inferred">
|
90
|
-
<td><pre><a name="line6">6</a>
|
90
|
+
<td><pre><a name="line6">6</a> </pre></td>
|
91
|
+
</tr>
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
<tr class="inferred">
|
96
|
+
<td><pre><a name="line7">7</a> # Produces a string id using the type and id of obj plus any field suffix supplied useful when</pre></td>
|
97
|
+
</tr>
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
<tr class="inferred">
|
102
|
+
<td><pre><a name="line8">8</a> # assigning html ids on index pages.</pre></td>
|
103
|
+
</tr>
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
<tr class="inferred">
|
108
|
+
<td><pre><a name="line9">9</a> # e.g. element_id(user, 'name') => 'User_23_name'</pre></td>
|
91
109
|
</tr>
|
92
110
|
|
93
111
|
|
94
112
|
|
95
113
|
<tr class="marked">
|
96
|
-
<td><pre><a name="
|
114
|
+
<td><pre><a name="line10">10</a> def element_id(obj, field="")</pre></td>
|
97
115
|
</tr>
|
98
116
|
|
99
117
|
|
100
118
|
|
101
119
|
<tr class="marked">
|
102
|
-
<td><pre><a name="
|
120
|
+
<td><pre><a name="line11">11</a> obj.class.to_s + '_' + obj.to_param + (field.blank? ? '' : '_' + field)</pre></td>
|
103
121
|
</tr>
|
104
122
|
|
105
123
|
|
106
124
|
|
107
125
|
<tr class="inferred">
|
108
|
-
<td><pre><a name="
|
126
|
+
<td><pre><a name="line12">12</a> end</pre></td>
|
109
127
|
</tr>
|
110
128
|
|
111
129
|
|
112
130
|
|
113
131
|
<tr class="inferred">
|
114
|
-
<td><pre><a name="
|
132
|
+
<td><pre><a name="line13">13</a> end</pre></td>
|
115
133
|
</tr>
|
116
134
|
|
117
135
|
|
118
136
|
|
119
137
|
<tr class="inferred">
|
120
|
-
<td><pre><a name="
|
138
|
+
<td><pre><a name="line14">14</a> </pre></td>
|
121
139
|
</tr>
|
122
140
|
|
123
141
|
</tbody>
|
124
142
|
</table>
|
125
143
|
|
126
|
-
<p>Generated on
|
144
|
+
<p>Generated on Wed Dec 09 15:45:09 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
|
127
145
|
|
128
146
|
</body>
|
129
147
|
</html>
|
@@ -69,7 +69,7 @@
|
|
69
69
|
</tbody>
|
70
70
|
</table>
|
71
71
|
|
72
|
-
<p>Generated on
|
72
|
+
<p>Generated on Wed Dec 09 15:45:10 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
|
73
73
|
|
74
74
|
</body>
|
75
75
|
</html>
|
@@ -69,7 +69,7 @@
|
|
69
69
|
</tbody>
|
70
70
|
</table>
|
71
71
|
|
72
|
-
<p>Generated on
|
72
|
+
<p>Generated on Wed Dec 09 15:45:09 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
|
73
73
|
|
74
74
|
</body>
|
75
75
|
</html>
|
@@ -69,7 +69,7 @@
|
|
69
69
|
</tbody>
|
70
70
|
</table>
|
71
71
|
|
72
|
-
<p>Generated on
|
72
|
+
<p>Generated on Wed Dec 09 15:45:10 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
|
73
73
|
|
74
74
|
</body>
|
75
75
|
</html>
|
@@ -69,7 +69,7 @@
|
|
69
69
|
</tbody>
|
70
70
|
</table>
|
71
71
|
|
72
|
-
<p>Generated on
|
72
|
+
<p>Generated on Wed Dec 09 15:45:09 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
|
73
73
|
|
74
74
|
</body>
|
75
75
|
</html>
|
@@ -69,7 +69,7 @@
|
|
69
69
|
</tbody>
|
70
70
|
</table>
|
71
71
|
|
72
|
-
<p>Generated on
|
72
|
+
<p>Generated on Wed Dec 09 15:45:10 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
|
73
73
|
|
74
74
|
</body>
|
75
75
|
</html>
|
@@ -69,7 +69,7 @@
|
|
69
69
|
</tbody>
|
70
70
|
</table>
|
71
71
|
|
72
|
-
<p>Generated on
|
72
|
+
<p>Generated on Wed Dec 09 15:45:10 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
|
73
73
|
|
74
74
|
</body>
|
75
75
|
</html>
|
@@ -69,7 +69,7 @@
|
|
69
69
|
</tbody>
|
70
70
|
</table>
|
71
71
|
|
72
|
-
<p>Generated on
|
72
|
+
<p>Generated on Wed Dec 09 15:45:10 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
|
73
73
|
|
74
74
|
</body>
|
75
75
|
</html>
|
@@ -147,7 +147,7 @@
|
|
147
147
|
</tbody>
|
148
148
|
</table>
|
149
149
|
|
150
|
-
<p>Generated on
|
150
|
+
<p>Generated on Wed Dec 09 15:45:10 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
|
151
151
|
|
152
152
|
</body>
|
153
153
|
</html>
|
@@ -153,7 +153,7 @@
|
|
153
153
|
</tbody>
|
154
154
|
</table>
|
155
155
|
|
156
|
-
<p>Generated on
|
156
|
+
<p>Generated on Wed Dec 09 15:45:10 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
|
157
157
|
|
158
158
|
</body>
|
159
159
|
</html>
|
@@ -99,7 +99,7 @@
|
|
99
99
|
</tbody>
|
100
100
|
</table>
|
101
101
|
|
102
|
-
<p>Generated on
|
102
|
+
<p>Generated on Wed Dec 09 15:45:10 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
|
103
103
|
|
104
104
|
</body>
|
105
105
|
</html>
|
@@ -28,7 +28,7 @@
|
|
28
28
|
<tbody>
|
29
29
|
<tr>
|
30
30
|
<td class="left_align"><a href="app-models-precondition_rb.html">app/models/precondition.rb</a></td>
|
31
|
-
<td class='right_align'><tt>
|
31
|
+
<td class='right_align'><tt>16</tt></td>
|
32
32
|
<td class='right_align'><tt>7</tt></td>
|
33
33
|
<td class="left_align"><div class="percent_graph_legend"><tt class=''>100.00%</tt></div>
|
34
34
|
<div class="percent_graph">
|
@@ -135,7 +135,7 @@
|
|
135
135
|
|
136
136
|
|
137
137
|
<tr class="inferred">
|
138
|
-
<td><pre><a name="line14">14</a>
|
138
|
+
<td><pre><a name="line14">14</a> </pre></td>
|
139
139
|
</tr>
|
140
140
|
|
141
141
|
|
@@ -144,10 +144,16 @@
|
|
144
144
|
<td><pre><a name="line15">15</a> end</pre></td>
|
145
145
|
</tr>
|
146
146
|
|
147
|
+
|
148
|
+
|
149
|
+
<tr class="inferred">
|
150
|
+
<td><pre><a name="line16">16</a> </pre></td>
|
151
|
+
</tr>
|
152
|
+
|
147
153
|
</tbody>
|
148
154
|
</table>
|
149
155
|
|
150
|
-
<p>Generated on
|
156
|
+
<p>Generated on Wed Dec 09 15:45:10 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
|
151
157
|
|
152
158
|
</body>
|
153
159
|
</html>
|
@@ -99,7 +99,7 @@
|
|
99
99
|
</tbody>
|
100
100
|
</table>
|
101
101
|
|
102
|
-
<p>Generated on
|
102
|
+
<p>Generated on Wed Dec 09 15:45:09 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
|
103
103
|
|
104
104
|
</body>
|
105
105
|
</html>
|
@@ -87,13 +87,13 @@
|
|
87
87
|
|
88
88
|
|
89
89
|
<tr class="marked">
|
90
|
-
<td><pre><a name="line6">6</a> has_many :outcomes</pre></td>
|
90
|
+
<td><pre><a name="line6">6</a> has_many :outcomes, :dependent => :destroy</pre></td>
|
91
91
|
</tr>
|
92
92
|
|
93
93
|
|
94
94
|
|
95
95
|
<tr class="marked">
|
96
|
-
<td><pre><a name="line7">7</a> has_many :preconditions</pre></td>
|
96
|
+
<td><pre><a name="line7">7</a> has_many :preconditions, :dependent => :destroy</pre></td>
|
97
97
|
</tr>
|
98
98
|
|
99
99
|
|
@@ -141,7 +141,7 @@
|
|
141
141
|
</tbody>
|
142
142
|
</table>
|
143
143
|
|
144
|
-
<p>Generated on
|
144
|
+
<p>Generated on Wed Dec 09 15:45:10 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
|
145
145
|
|
146
146
|
</body>
|
147
147
|
</html>
|