Commit a7bada9
fix: Add missing 'add' method to PackageManager mock in test
The test was failing because the mock PackageManager double only
stubbed the 'install' method, but the actual code calls
'pj.manager.add(packages_array)' in add_js_dependency.
This commit adds the 'add' method to the mock's allowed methods,
allowing the test to properly verify that package_json gem methods
are used instead of system() commands for dependency installation.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 63505ab commit a7bada9
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
| 90 | + | |
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| |||
0 commit comments