diff --git a/spec/components/block_link_component_spec.rb b/spec/components/block_link_component_spec.rb index 0dccef313a0..1b50eabad5f 100644 --- a/spec/components/block_link_component_spec.rb +++ b/spec/components/block_link_component_spec.rb @@ -30,7 +30,7 @@ end context 'with custom renderer' do - class ExampleComponent < BaseComponent + class ExampleBlockLinkCustomRendererComponent < BaseComponent def initialize(href:, **) @href = href end @@ -43,7 +43,7 @@ def call it 'renders using the custom renderer' do rendered = render_inline BlockLinkComponent.new( url: '/', - action: ExampleComponent.method(:new), + action: ExampleBlockLinkCustomRendererComponent.method(:new), ).with_content('Link Text') expect(rendered).to have_css('button[data-href="/"]', text: 'Example Link Text')