branston 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. data/lib/branston/app/controllers/stories_controller.rb +104 -103
  2. data/lib/branston/coverage/app-controllers-application_controller_rb.html +1 -1
  3. data/lib/branston/coverage/app-controllers-iterations_controller_rb.html +107 -101
  4. data/lib/branston/coverage/app-controllers-outcomes_controller_rb.html +114 -102
  5. data/lib/branston/coverage/app-controllers-preconditions_controller_rb.html +54 -90
  6. data/lib/branston/coverage/app-controllers-releases_controller_rb.html +101 -89
  7. data/lib/branston/coverage/app-controllers-scenarios_controller_rb.html +94 -76
  8. data/lib/branston/coverage/app-controllers-sessions_controller_rb.html +60 -42
  9. data/lib/branston/coverage/app-controllers-stories_controller_rb.html +188 -110
  10. data/lib/branston/coverage/app-controllers-user_roles_controller_rb.html +123 -87
  11. data/lib/branston/coverage/app-controllers-users_controller_rb.html +39 -27
  12. data/lib/branston/coverage/app-helpers-application_helper_rb.html +26 -8
  13. data/lib/branston/coverage/app-helpers-iterations_helper_rb.html +1 -1
  14. data/lib/branston/coverage/app-helpers-outcomes_helper_rb.html +1 -1
  15. data/lib/branston/coverage/app-helpers-preconditions_helper_rb.html +1 -1
  16. data/lib/branston/coverage/app-helpers-releases_helper_rb.html +1 -1
  17. data/lib/branston/coverage/app-helpers-sessions_helper_rb.html +1 -1
  18. data/lib/branston/coverage/app-helpers-stories_helper_rb.html +1 -1
  19. data/lib/branston/coverage/app-helpers-user_roles_helper_rb.html +1 -1
  20. data/lib/branston/coverage/app-models-iteration_rb.html +1 -1
  21. data/lib/branston/coverage/app-models-outcome_rb.html +1 -1
  22. data/lib/branston/coverage/app-models-participation_rb.html +1 -1
  23. data/lib/branston/coverage/app-models-precondition_rb.html +9 -3
  24. data/lib/branston/coverage/app-models-release_rb.html +1 -1
  25. data/lib/branston/coverage/app-models-scenario_rb.html +3 -3
  26. data/lib/branston/coverage/app-models-story_rb.html +79 -7
  27. data/lib/branston/coverage/app-models-user_rb.html +1 -1
  28. data/lib/branston/coverage/app-models-user_role_rb.html +1 -1
  29. data/lib/branston/coverage/index.html +106 -90
  30. data/lib/branston/coverage/lib-client_rb.html +537 -0
  31. data/lib/branston/coverage/lib-faker_extras_rb.html +1 -1
  32. data/lib/branston/coverage/lib-story_generator_rb.html +43 -49
  33. data/lib/branston/db/test.sqlite3 +0 -0
  34. data/lib/branston/lib/branston.rb +5 -1
  35. data/lib/branston/lib/client.rb +48 -30
  36. data/lib/branston/test/functional/stories_controller_test.rb +119 -105
  37. data/lib/branston/test/unit/client_test.rb +34 -9
  38. data/lib/branston/tmp/performance/BrowsingTest#test_homepage_process_time_flat.txt +10 -0
  39. data/lib/branston/tmp/performance/BrowsingTest#test_homepage_process_time_graph.html +6603 -0
  40. data/lib/branston/tmp/performance/BrowsingTest#test_homepage_process_time_tree.txt +9714 -0
  41. metadata +6 -5
  42. data/lib/branston/db/production.sqlite3 +0 -0
  43. data/lib/branston/log/development.log +0 -10836
  44. 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>26</tt></td>
32
- <td class='right_align'><tt>18</tt></td>
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="line3">3</a> # render new.rhtml</pre></td>
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="line4">4</a> def new</pre></td>
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="line5">5</a> @user = User.new</pre></td>
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="line6">6</a> end</pre></td>
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="line7">7</a> </pre></td>
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="line8">8</a> def create</pre></td>
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="line9">9</a> logout_keeping_session!</pre></td>
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="line10">10</a> @user = User.new(params[:user])</pre></td>
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="line11">11</a> success = @user &amp;&amp; @user.save</pre></td>
132
+ <td><pre><a name="line13">13</a> success = @user &amp;&amp; @user.save</pre></td>
121
133
  </tr>
122
134
 
123
135
 
124
136
 
125
137
  <tr class="marked">
126
- <td><pre><a name="line12">12</a> if success &amp;&amp; @user.errors.empty?</pre></td>
138
+ <td><pre><a name="line14">14</a> if success &amp;&amp; @user.errors.empty?</pre></td>
127
139
  </tr>
128
140
 
129
141
 
130
142
 
131
143
  <tr class="inferred">
132
- <td><pre><a name="line13">13</a> # Protects against session fixation attacks, causes request forgery</pre></td>
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="line14">14</a> # protection if visitor resubmits an earlier form using back</pre></td>
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="line15">15</a> # button. Uncomment if you understand the tradeoffs.</pre></td>
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="line16">16</a> # reset session</pre></td>
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="line17">17</a> self.current_user = @user # !! now logged in</pre></td>
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="line18">18</a> redirect_back_or_default('/')</pre></td>
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="line19">19</a> flash[:notice] = &quot;Thanks for signing up! We're sending you an email with your activation code.&quot;</pre></td>
180
+ <td><pre><a name="line21">21</a> flash[:notice] = &quot;Thanks for signing up! We're sending you an email with your activation code.&quot;</pre></td>
169
181
  </tr>
170
182
 
171
183
 
172
184
 
173
185
  <tr class="inferred">
174
- <td><pre><a name="line20">20</a> else</pre></td>
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="line21">21</a> flash[:error] = &quot;We couldn't set up that account, sorry. Please try again, or contact an admin (link is above).&quot;</pre></td>
192
+ <td><pre><a name="line23">23</a> flash[:error] = &quot;We couldn't set up that account, sorry. Please try again, or contact an admin (link is above).&quot;</pre></td>
181
193
  </tr>
182
194
 
183
195
 
184
196
 
185
197
  <tr class="marked">
186
- <td><pre><a name="line22">22</a> render :action =&gt; 'new'</pre></td>
198
+ <td><pre><a name="line24">24</a> render :action =&gt; 'new'</pre></td>
187
199
  </tr>
188
200
 
189
201
 
190
202
 
191
203
  <tr class="inferred">
192
- <td><pre><a name="line23">23</a> end</pre></td>
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="line24">24</a> end</pre></td>
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="line25">25</a> end</pre></td>
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="line26">26</a> </pre></td>
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 Thu Dec 03 16:49:25 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.6</a></p>
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>11</tt></td>
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> </pre></td>
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') =&gt; 'User_23_name'</pre></td>
91
109
  </tr>
92
110
 
93
111
 
94
112
 
95
113
  <tr class="marked">
96
- <td><pre><a name="line7">7</a> def element_id(obj, field=&quot;&quot;)</pre></td>
114
+ <td><pre><a name="line10">10</a> def element_id(obj, field=&quot;&quot;)</pre></td>
97
115
  </tr>
98
116
 
99
117
 
100
118
 
101
119
  <tr class="marked">
102
- <td><pre><a name="line8">8</a> obj.class.to_s + '_' + obj.id.to_s + (field.blank? ? '' : '_' + field)</pre></td>
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="line9">9</a> end</pre></td>
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="line10">10</a> end</pre></td>
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="line11">11</a> </pre></td>
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 Thu Dec 03 16:49:24 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.6</a></p>
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 Thu Dec 03 16:49:25 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.6</a></p>
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 Thu Dec 03 16:49:24 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.6</a></p>
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 Thu Dec 03 16:49:25 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.6</a></p>
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 Thu Dec 03 16:49:24 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.6</a></p>
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 Thu Dec 03 16:49:25 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.6</a></p>
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 Thu Dec 03 16:49:25 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.6</a></p>
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 Thu Dec 03 16:49:25 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.6</a></p>
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 Thu Dec 03 16:49:25 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.6</a></p>
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 Thu Dec 03 16:49:25 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.6</a></p>
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 Thu Dec 03 16:49:24 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.6</a></p>
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>15</tt></td>
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> </pre></td>
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 Thu Dec 03 16:49:25 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.6</a></p>
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 Thu Dec 03 16:49:25 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.6</a></p>
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 =&gt; :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 =&gt; :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 Thu Dec 03 16:49:25 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.6</a></p>
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>