Commit 78bd6aa
Fix PackageJson constant NameError in generator_helper_spec
The test was failing with:
NameError: uninitialized constant PackageJson
This occurred because instance_double(PackageJson) requires the
PackageJson constant to be defined at the time the double is created.
Solution: Stub the PackageJson constant in the before block before
creating the instance_double, consistent with other tests in the same
file that use stub_const for PackageJson.
This fix resolves all 3 failing tests in CI:
- calls manager.add with exact: true
- calls manager.add with type: :dev and exact: true
- returns false and prints a warning
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 086ba5e commit 78bd6aa
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
16 | 19 | | |
17 | 20 | | |
18 | 21 | | |
| |||
0 commit comments