Commit af32746
Fix spec/dummy bin/dev to use correct route (#2029)
## Summary
Replaces the `spec/dummy/bin/dev` symlink with a wrapper script that
passes `--route=/` to the base dev script.
## Problem
The `spec/dummy/bin/dev` was a symlink to the template script at
`lib/generators/react_on_rails/templates/base/base/bin/dev`, which
defaults to `DEFAULT_ROUTE = "hello_world"`. This is incorrect for the
dummy app which needs to use the root route `/`.
## Solution
Replace the symlink with a wrapper script that:
- Calls the base dev script
- Forces `--route=/` for the dummy app
- Passes through all other command-line arguments
## Test Plan
- Verified `bundle exec rubocop` passes with no offenses
- Verified `bin/dev --help` works correctly in spec/dummy
- Verified file is executable and has correct permissions
Generated with Claude Code (https://claude.com/claude-code)
<!-- Reviewable:start -->
- - -
This change is [<img src="https://reviewable.io/review_button.svg"
height="34" align="absmiddle"
alt="Reviewable"/>](https://reviewable.io/reviews/shakacode/react_on_rails/2029)
<!-- Reviewable:end -->
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Chores**
* Updated internal development script configuration to improve
development environment setup.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Co-authored-by: Claude <[email protected]>1 parent ad73088 commit af32746
3 files changed
+27
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
129 | 135 | | |
130 | 136 | | |
131 | 137 | | |
| |||
156 | 162 | | |
157 | 163 | | |
158 | 164 | | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
159 | 177 | | |
160 | 178 | | |
161 | 179 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
2 | 3 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
| 4 | + | |
| 5 | + | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
0 commit comments