Commit a74f039
committed
Skip Pro validation for example app RSpec tests
Example apps are generated with the base gem but run in a monorepo
environment where the Pro gem is available. When RSpec loads the Rails
environment, the version checker detects Pro gem is available but
example app only has 'react-on-rails' npm package, causing validation
to fail.
Solution:
- Add REACT_ON_RAILS_SKIP_VALIDATION=true to run_tests_in() call for
example apps in run_rspec.rake
- This complements the previous fix for generate_packs in
shakapacker_examples.rake
This is safe because:
- Example apps are for testing the generator, not production use
- The validation is still enforced in normal app initialization
- It's consistent with skipping validation during generation
Fixes RSpec test failures in Phase 6 monorepo examples CI.1 parent b7ec67b commit a74f039
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
| 84 | + | |
| 85 | + | |
85 | 86 | | |
86 | 87 | | |
87 | 88 | | |
| |||
0 commit comments