Browse Source

Rendered component is deprecated and page is provided automatically in view components now

pull/703/head
baarkerlounger 3 years ago
parent
commit
f493548d71
  1. 1
      spec/components/search_component_spec.rb
  2. 1
      spec/components/search_result_caption_component_spec.rb

1
spec/components/search_component_spec.rb

@ -3,7 +3,6 @@ require "rails_helper"
RSpec.describe SearchComponent, type: :component do RSpec.describe SearchComponent, type: :component do
let(:current_user) { FactoryBot.create(:user, :support) } let(:current_user) { FactoryBot.create(:user, :support) }
let(:search_label) { "Search by name or email address" } let(:search_label) { "Search by name or email address" }
let(:page) { Capybara::Node::Simple.new(rendered_component) }
let(:value) { nil } let(:value) { nil }
before do before do

1
spec/components/search_result_caption_component_spec.rb

@ -1,7 +1,6 @@
require "rails_helper" require "rails_helper"
RSpec.describe SearchResultCaptionComponent, type: :component do RSpec.describe SearchResultCaptionComponent, type: :component do
let(:page) { Capybara::Node::Simple.new(rendered_component) }
let(:searched) { "search item" } let(:searched) { "search item" }
let(:count) { 2 } let(:count) { 2 }
let(:item_label) { "user" } let(:item_label) { "user" }

Loading…
Cancel
Save