Skip to content

Commit

Permalink
Merge pull request #412 from DFE-Digital/upgrade-to-view-component-3.…
Browse files Browse the repository at this point in the history
…0.0rc6

Upgrade to view_component 3.0.0rc6
  • Loading branch information
peteryates authored Apr 12, 2023
2 parents 23ffdad + ec2c00d commit 57ee944
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion govuk-components.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion guide/lib/examples/table_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand Down
2 changes: 1 addition & 1 deletion spec/components/govuk_component/table_component_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 57ee944

Please sign in to comment.