Skip to content

Commit a3f47dd

Browse files
committed
Add Minitest invocation alongside RSpec in basic-setup.md
Step 5 currently shows only `bundle exec rspec` for running tests on both sides. Add a short note that Minitest apps substitute `bin/rails test` (or `rake test`), and show the Minitest equivalent block alongside the RSpec one. Point to `workflows/setup-workflow.md` Step 11 for the full test-runner detection logic (RSpec, Minitest, `bin/test` wrapper, `parallel_tests`, `turbo_tests`).
1 parent 5bda901 commit a3f47dd

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

dual-boot/examples/basic-setup.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ BUNDLE_GEMFILE=Gemfile.next bundle install
7171

7272
### 5. Run Tests Against Both
7373

74+
This example uses RSpec. If your project uses Minitest, substitute `bin/rails test` (or `rake test`) for `bundle exec rspec` throughout. The `BUNDLE_GEMFILE=Gemfile.next` prefix works with any test runner. See `workflows/setup-workflow.md` Step 11 for the full detection logic (RSpec, Minitest, `bin/test`, `parallel_tests`, `turbo_tests`).
75+
76+
**RSpec:**
77+
7478
```bash
7579
# Current version (4.2)
7680
bundle exec rspec
@@ -81,6 +85,16 @@ BUNDLE_GEMFILE=Gemfile.next bundle exec rspec
8185
# => Some failures — fix using NextRails.next? branching
8286
```
8387

88+
**Minitest equivalent:**
89+
90+
```bash
91+
# Current version (4.2)
92+
bin/rails test
93+
94+
# Next version (5.0)
95+
BUNDLE_GEMFILE=Gemfile.next bin/rails test
96+
```
97+
8498
### 6. Fix a Breaking Change
8599

86100
On Rails 4.2, `ActionController::TestRequest.new` takes an optional `env`. On 5.0, `new` requires two non-optional arguments (so the 4.2 call raises `ArgumentError`), and 5.0 introduces `TestRequest.create` — which doesn't exist on 4.2 (`NoMethodError`). Each side raises on the other. A conditional is required:

0 commit comments

Comments
 (0)