From a1550b35514da1b6396088e7c67bbb105d229b7b Mon Sep 17 00:00:00 2001 From: Kasper Timm Hansen Date: Thu, 9 Jan 2025 00:02:24 +0100 Subject: [PATCH] Document loading one-off cases in RSpec Ref https://github.com/kaspth/oaken/issues/95 Needs a `type: :feature` too to match the integration example above. --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 87d47fb..2d8d098 100644 --- a/README.md +++ b/README.md @@ -113,6 +113,14 @@ class PaginationTest < ActionDispatch::IntegrationTest end ``` +And in RSpec: + +```ruby +RSpec.describe "Pagination", type: :feature do + before { seed "cases/pagination" } +end +``` + > [!NOTE] > We're recommending having one-off seeds on an individual unit of work to help reinforce test isolation. Having some seed files be isolated also helps: >