Commit 9334518
Refactor rspec subjects to be import objects
This changes import specs to not make test `subject` an action. This is
stylistic, it can work either way, but considering how hard it's been to reason
about the imports I thought it would be better to return to what's considered
common convention to try to make the tests easier to understand.
This became particularly apparent when a call to `parse_rows!` had to be added
to tests (coming in a later change), meaning the `subject` would need a call to
`parse_rows!`, or possibly `parse_rows!` added to the `before` block, but either
way it was becoming un-idiomatic.
Jira-Issue: MAV-60631 parent 0b99660 commit 9334518
3 files changed
Lines changed: 61 additions & 71 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
63 | | - | |
64 | | - | |
| 62 | + | |
65 | 63 | | |
66 | 64 | | |
67 | 65 | | |
| |||
136 | 134 | | |
137 | 135 | | |
138 | 136 | | |
139 | | - | |
140 | | - | |
141 | 137 | | |
142 | 138 | | |
143 | 139 | | |
| |||
155 | 151 | | |
156 | 152 | | |
157 | 153 | | |
158 | | - | |
| 154 | + | |
159 | 155 | | |
160 | 156 | | |
161 | 157 | | |
| |||
172 | 168 | | |
173 | 169 | | |
174 | 170 | | |
175 | | - | |
| 171 | + | |
176 | 172 | | |
177 | 173 | | |
178 | 174 | | |
| |||
227 | 223 | | |
228 | 224 | | |
229 | 225 | | |
230 | | - | |
231 | | - | |
232 | 226 | | |
233 | 227 | | |
234 | 228 | | |
| |||
241 | 235 | | |
242 | 236 | | |
243 | 237 | | |
244 | | - | |
| 238 | + | |
245 | 239 | | |
246 | 240 | | |
247 | 241 | | |
| |||
258 | 252 | | |
259 | 253 | | |
260 | 254 | | |
261 | | - | |
| 255 | + | |
262 | 256 | | |
263 | 257 | | |
264 | 258 | | |
| |||
267 | 261 | | |
268 | 262 | | |
269 | 263 | | |
270 | | - | |
| 264 | + | |
271 | 265 | | |
272 | 266 | | |
273 | 267 | | |
274 | 268 | | |
275 | 269 | | |
276 | 270 | | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | 271 | | |
282 | 272 | | |
283 | 273 | | |
284 | 274 | | |
285 | | - | |
| 275 | + | |
286 | 276 | | |
287 | 277 | | |
288 | 278 | | |
| |||
316 | 306 | | |
317 | 307 | | |
318 | 308 | | |
319 | | - | |
| 309 | + | |
320 | 310 | | |
321 | 311 | | |
322 | 312 | | |
| |||
333 | 323 | | |
334 | 324 | | |
335 | 325 | | |
336 | | - | |
| 326 | + | |
337 | 327 | | |
338 | 328 | | |
339 | 329 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | | - | |
61 | | - | |
| 59 | + | |
62 | 60 | | |
63 | 61 | | |
64 | 62 | | |
| |||
137 | 135 | | |
138 | 136 | | |
139 | 137 | | |
140 | | - | |
141 | | - | |
142 | 138 | | |
143 | 139 | | |
144 | 140 | | |
| |||
156 | 152 | | |
157 | 153 | | |
158 | 154 | | |
159 | | - | |
| 155 | + | |
160 | 156 | | |
161 | 157 | | |
162 | 158 | | |
| |||
166 | 162 | | |
167 | 163 | | |
168 | 164 | | |
169 | | - | |
| 165 | + | |
170 | 166 | | |
171 | 167 | | |
172 | 168 | | |
| |||
0 commit comments