Commit 6f019e0
Replace blueprints with FactoryBot (#1595)
* Initial plan
* Initial analysis of Ransack spec structure - planning refactor from Machinist to FactoryBot
Co-authored-by: scarroll32 <[email protected]>
* Changes before error encountered
Co-authored-by: scarroll32 <[email protected]>
* Complete replacement of Machinist with FactoryBot
- Replace Machinist gem with FactoryBot in Gemfile
- Convert all blueprint files to FactoryBot factories with proper syntax
- Update spec_helper.rb to use FactoryBot instead of Machinist/Sham
- Update console.rb to use FactoryBot
- Update schema.rb data seeding to use FactoryBot instead of .make methods
- Remove old blueprint files and unused dummy app structure
- All tests passing (437/438 pass, 1 expected failure, same as original)
- FactoryBot factories work correctly with polymorphic associations
Co-authored-by: scarroll32 <[email protected]>
* Replace Machinist with FactoryBot
* Include Rubocop in manual spec runs
---------
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: scarroll32 <[email protected]>
Co-authored-by: Sean <[email protected]>1 parent 3d985fd commit 6f019e0
File tree
17 files changed
+63
-71
lines changed- spec
- blueprints
- factories
- ransack
- support
17 files changed
+63
-71
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
| 2 | + | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
7 | | - | |
| 6 | + | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
| 11 | + | |
24 | 12 | | |
25 | 13 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
0 commit comments