From ec2c00d4fe1f1e81082344ea7dd8de2c9a72d87a Mon Sep 17 00:00:00 2001 From: Peter Yates Date: Wed, 12 Apr 2023 16:42:02 +0100 Subject: [PATCH] Upgrade to view_component 3.0.0rc6 --- govuk-components.gemspec | 2 +- guide/lib/examples/table_helpers.rb | 2 +- spec/components/govuk_component/table_component_spec.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/govuk-components.gemspec b/govuk-components.gemspec index 7b563c7c..ddbaedec 100644 --- a/govuk-components.gemspec +++ b/govuk-components.gemspec @@ -24,7 +24,7 @@ Gem::Specification.new do |spec| spec.add_dependency("html-attributes-utils", "~> 1.0.0", ">= 1.0.0") spec.add_dependency("pagy", "~> 6.0") - spec.add_dependency("view_component", "~> 3.0.0rc5") + spec.add_dependency("view_component", "~> 3.0.0rc6") spec.add_development_dependency "deep_merge" spec.add_development_dependency "pry-byebug" diff --git a/guide/lib/examples/table_helpers.rb b/guide/lib/examples/table_helpers.rb index 408ece30..82b56487 100644 --- a/guide/lib/examples/table_helpers.rb +++ b/guide/lib/examples/table_helpers.rb @@ -82,7 +82,7 @@ def table_data def table_with_resized_columns <<~TABLE = govuk_table do |table| - - table.caption(size: 'm', text: 'List of Pokémon with descriptions') + - table.with_caption(size: 'm', text: 'List of Pokémon with descriptions') - table.with_head do |head| - head.with_row do |row| diff --git a/spec/components/govuk_component/table_component_spec.rb b/spec/components/govuk_component/table_component_spec.rb index cf5e332c..cd2cfb15 100644 --- a/spec/components/govuk_component/table_component_spec.rb +++ b/spec/components/govuk_component/table_component_spec.rb @@ -59,7 +59,7 @@ subject! do render_inline(GovukComponent::TableComponent.new(**kwargs)) do |table| - table.caption(text: "What a nice table") + table.with_caption(text: "What a nice table") expected_count.times { table.with_body {} } end