Skip to content

Commit fda25b8

Browse files
authored
Correct example ActiveStorage fixture file path
There are similar example in [File Attachment Fixtures] ``` # test/fixtures/active_storage/blobs.yml ... # test/fixtures/active_storage/attachments.yml ... ``` [File Attachment Fixtures]: https://edgeguides.rubyonrails.org/testing.html#file-attachment-fixtures
1 parent e1a09e6 commit fda25b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

guides/source/active_storage_overview.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1322,15 +1322,15 @@ test.
13221322
Next, create fixture files for the Active Storage classes:
13231323

13241324
```yml
1325-
# active_storage/attachments.yml
1325+
# test/fixtures/active_storage/attachments.yml
13261326
david_avatar:
13271327
name: avatar
13281328
record: david (User)
13291329
blob: david_avatar_blob
13301330
```
13311331

13321332
```yml
1333-
# active_storage/blobs.yml
1333+
# test/fixtures/active_storage/blobs.yml
13341334
david_avatar_blob: <%= ActiveStorage::FixtureSet.blob filename: "david.png", service_name: "test_fixtures" %>
13351335
```
13361336

0 commit comments

Comments
 (0)