From f493548d71f8927ad16248a2ba3584c2adb53562 Mon Sep 17 00:00:00 2001 From: baarkerlounger Date: Wed, 29 Jun 2022 13:04:42 +0100 Subject: [PATCH] Rendered component is deprecated and page is provided automatically in view components now --- spec/components/search_component_spec.rb | 1 - spec/components/search_result_caption_component_spec.rb | 1 - 2 files changed, 2 deletions(-) diff --git a/spec/components/search_component_spec.rb b/spec/components/search_component_spec.rb index 8c2b8b7a7..9e571b0de 100644 --- a/spec/components/search_component_spec.rb +++ b/spec/components/search_component_spec.rb @@ -3,7 +3,6 @@ require "rails_helper" RSpec.describe SearchComponent, type: :component do let(:current_user) { FactoryBot.create(:user, :support) } let(:search_label) { "Search by name or email address" } - let(:page) { Capybara::Node::Simple.new(rendered_component) } let(:value) { nil } before do diff --git a/spec/components/search_result_caption_component_spec.rb b/spec/components/search_result_caption_component_spec.rb index b62953867..a317e562e 100644 --- a/spec/components/search_result_caption_component_spec.rb +++ b/spec/components/search_result_caption_component_spec.rb @@ -1,7 +1,6 @@ require "rails_helper" RSpec.describe SearchResultCaptionComponent, type: :component do - let(:page) { Capybara::Node::Simple.new(rendered_component) } let(:searched) { "search item" } let(:count) { 2 } let(:item_label) { "user" }