From 2789e49b12f6771f9f6ed441834ea1594443871b Mon Sep 17 00:00:00 2001 From: Daniel Diekmeier Date: Tue, 20 Aug 2024 10:38:05 +0200 Subject: [PATCH] Testing Docs: Use `query` in both cases (#279) * Use query instead of records * Use full namespace --- docs/3.0/testing.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/3.0/testing.md b/docs/3.0/testing.md index ac47ea2d..be3e0e91 100644 --- a/docs/3.0/testing.md +++ b/docs/3.0/testing.md @@ -42,7 +42,7 @@ end ```ruby require 'rails_helper' -RSpec.feature ReleaseFish, type: :feature do +RSpec.feature Avo::Actions::ReleaseFish, type: :feature do let(:fish) { create :fish } let(:current_user) { create :user } let(:resource) { Avo::Resources::User.new.hydrate model: fish } @@ -54,7 +54,7 @@ RSpec.feature ReleaseFish, type: :feature do }, current_user: current_user, resource: resource, - records: [fish] + query: [fish] } action = described_class.new(resource: resource, user: current_user, view: :edit)