Skip to content

Commit

Permalink
Merge pull request #687 from dunkOnIT/readme_update
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
andrykonchin committed Oct 10, 2023
2 parents b2103d9 + cf9701a commit f8fb70c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1293,6 +1293,12 @@ RSpec.configure do |config|
end
```

In addition, the first test for each model may fail if the relevant models are not included in `included_models`. This can be fixed by adding this line before the `DynamoidReset` module:
```ruby
Dir[File.join(Dynamoid::Config.models_dir, '**/*.rb')].each { |file| require file }
```
Note that this will require _all_ models in your models folder - you can also explicitly require only certain models if you would prefer to.

In Rails, you may also want to ensure you do not delete non-test data
accidentally by adding the following to your test environment setup:

Expand Down

0 comments on commit f8fb70c

Please sign in to comment.