Skip to content

Commit

Permalink
Document RSpec setup
Browse files Browse the repository at this point in the history
You need to require this one file.
  • Loading branch information
kaspth committed Jun 30, 2024
1 parent 8b760ff commit 7b17f3e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@ end

Now tests have access to `accounts.kaspers_donuts` and `users.kasper` etc. that were setup in the data scripts.

> [!NOTE] For RSpec, you can put this in `spec/rails_helper.rb`:
> ```ruby
> require "oaken/rspec_setup"
> ```
You can also load a specific seed, like this:
```ruby
Expand Down

0 comments on commit 7b17f3e

Please sign in to comment.