Skip to content

Commit f8ee6a5

Browse files
authored
Merge pull request rails#239 from ghiculescu/patch-1
Simplify "Building for testing" [merge after Rails 7.1]
2 parents 788f01f + adc00e1 commit f8ee6a5

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

README.md

+1-6
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,8 @@ The `tailwindcss:build` is automatically attached to `assets:precompile`, so bef
5555

5656
### Building for testing
5757

58-
The `tailwindcss:build` task is automatically attached to the `test:prepare` Rake task. The `test:prepare` task is run before some test tasks (e.g. `test:all` and `test:controllers`), but not before the bare `test` task.
58+
The `tailwindcss:build` task is automatically attached to the `test:prepare` Rake task. This task runs before test commands. If you run `bin/rails test` in your CI environment, your Tailwind output will be generated before tests run.
5959

60-
If your tests need Tailwind assets in your CI environment, it's best to be explicit and run this command:
61-
62-
```
63-
bin/rails test:prepare test
64-
```
6560

6661
### Update assets automatically
6762

0 commit comments

Comments
 (0)