Skip to content

Commit

Permalink
Testing Docs: Use query in both cases (#279)
Browse files Browse the repository at this point in the history
* Use query instead of records

* Use full namespace
  • Loading branch information
danieldiekmeier authored Aug 20, 2024
1 parent 3f6f851 commit 2789e49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/3.0/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand All @@ -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)
Expand Down

0 comments on commit 2789e49

Please sign in to comment.