Javi Martín
0eedc7b6ab
Use readable texts in admin budgets test
...
Particularly the line with `within "tr", text: "Finished budget" do` is
now easier to read.
This way we avoid a potential pitfall. Imagine that the factory which
creates a finished budget generated a budget with the name "COMPLETED
Budget 1". Then the test:
```
within "#budget_#{finished_budget.id}" do
expect(page).to have_content("COMPLETED")
end
```
Would pass even if we didn't add the text "COMPLETED" anywhere else,
because it would be included in the name of the budget.
2021-04-21 17:12:12 +02:00
..
2021-04-21 17:12:12 +02:00
2021-04-16 14:33:26 +02:00
2021-04-16 14:37:58 +02:00
2021-04-13 20:04:04 +02:00
2021-04-16 14:25:34 +02:00
2021-04-16 14:33:26 +02:00
2021-04-16 14:33:26 +02:00
2021-04-15 16:27:19 +02:00
2021-04-16 14:33:26 +02:00
2021-04-16 14:33:25 +02:00
2021-04-07 14:41:06 +02:00
2021-04-07 14:41:06 +02:00
2021-04-07 14:41:06 +02:00
2021-04-16 14:37:58 +02:00
2021-04-07 14:41:06 +02:00
2020-11-02 11:42:39 +01:00
2021-04-16 14:25:34 +02:00
2021-04-07 14:41:06 +02:00
2021-04-07 14:41:06 +02:00
2021-04-08 17:23:33 +02:00
2020-12-02 15:33:19 +01:00
2021-04-07 14:41:06 +02:00
2021-04-07 14:41:06 +02:00
2021-04-16 14:33:26 +02:00
2020-04-24 15:43:54 +02:00
2021-04-16 14:33:26 +02:00
2021-03-02 14:45:19 +01:00
2021-04-07 14:32:49 +02:00
2021-04-07 14:41:06 +02:00
2021-04-07 14:41:06 +02:00
2021-04-07 14:41:06 +02:00
2021-04-09 12:54:07 +02:00
2020-04-24 15:43:54 +02:00
2021-04-07 14:41:06 +02:00
2021-04-16 14:37:58 +02:00
2020-04-24 15:43:54 +02:00
2021-04-16 14:25:34 +02:00
2021-04-16 14:33:26 +02:00
2021-04-07 14:41:06 +02:00
2020-04-24 15:43:54 +02:00
2021-04-07 14:41:06 +02:00
2021-04-07 14:41:06 +02:00
2021-04-07 14:41:06 +02:00
2021-04-07 14:41:06 +02:00
2021-04-07 14:41:06 +02:00
2021-04-07 14:41:06 +02:00
2021-04-07 14:35:30 +02:00
2021-04-07 14:41:06 +02:00
2021-04-07 14:41:06 +02:00
2021-04-16 14:37:58 +02:00
2021-04-13 21:54:26 +02:00
2021-04-07 14:41:06 +02:00
2021-04-07 14:41:06 +02:00
2020-04-24 15:43:54 +02:00
2021-04-07 14:41:06 +02:00