File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ config.view_component.default_preview_layout = "component_preview"
115
115
116
116
## Preview paths
117
117
118
- Preview classes live in ` test/components/previews ` , which can be configured using the ` preview_paths ` option:
118
+ Preview classes live in ` test/components/previews ` , which can be configured using the ` previews.paths ` option:
119
119
120
120
``` ruby
121
121
# config/application.rb
@@ -210,9 +210,9 @@ config.view_component.previews.enabled = false
210
210
211
211
## Use with RSpec
212
212
213
- When using previews with RSpec, replace ` test/components ` with ` spec/components ` and update ` preview_paths ` :
213
+ When using previews with RSpec, replace ` test/components ` with ` spec/components ` and update ` previews.paths ` :
214
214
215
215
``` ruby
216
216
# config/application.rb
217
- config.view_component.preview_paths << " #{ Rails .root} /spec/components/previews"
217
+ config.view_component.previews.paths << " #{ Rails .root} /spec/components/previews"
218
218
```
You can’t perform that action at this time.
0 commit comments