Skip to content

Commit

Permalink
Merge pull request #3001 from alphagov/dependabot/bundler/rubocop-gov…
Browse files Browse the repository at this point in the history
…uk-4.13.0

Bump rubocop-govuk from 4.12.0 to 4.13.0
  • Loading branch information
davidgisbey authored Dec 28, 2023
2 parents 3d7a24f + ef4880b commit 6880074
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 21 deletions.
37 changes: 19 additions & 18 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ GEM
nokogiri (>= 1.6)
interactor (3.1.2)
jmespath (1.6.2)
json (2.6.3)
json (2.7.1)
json-schema (4.1.1)
addressable (>= 2.8)
json_matchers (0.11.1)
Expand Down Expand Up @@ -502,8 +502,8 @@ GEM
opentelemetry-semantic_conventions
opentelemetry-semantic_conventions (1.10.0)
opentelemetry-api (~> 1.0)
parallel (1.23.0)
parser (3.2.2.3)
parallel (1.24.0)
parser (3.2.2.4)
ast (~> 2.4.1)
racc
pdf-reader (2.12.0)
Expand Down Expand Up @@ -592,37 +592,38 @@ GEM
rspec-mocks (~> 3.12)
rspec-support (~> 3.12)
rspec-support (3.12.1)
rubocop (1.55.0)
rubocop (1.59.0)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
parser (>= 3.2.2.3)
parser (>= 3.2.2.4)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
rexml (>= 3.2.5, < 4.0)
rubocop-ast (>= 1.28.1, < 2.0)
rubocop-ast (>= 1.30.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.29.0)
rubocop-ast (1.30.0)
parser (>= 3.2.1.0)
rubocop-capybara (2.18.0)
rubocop-capybara (2.19.0)
rubocop (~> 1.41)
rubocop-factory_bot (2.23.1)
rubocop-factory_bot (2.24.0)
rubocop (~> 1.33)
rubocop-govuk (4.12.0)
rubocop (= 1.55.0)
rubocop-ast (= 1.29.0)
rubocop-rails (= 2.20.2)
rubocop-govuk (4.13.0)
rubocop (= 1.59.0)
rubocop-ast (= 1.30.0)
rubocop-rails (= 2.23.0)
rubocop-rake (= 0.6.0)
rubocop-rspec (= 2.22.0)
rubocop-rails (2.20.2)
rubocop-rspec (= 2.25.0)
rubocop-rails (2.23.0)
activesupport (>= 4.2.0)
rack (>= 1.1)
rubocop (>= 1.33.0, < 2.0)
rubocop-ast (>= 1.30.0, < 2.0)
rubocop-rake (0.6.0)
rubocop (~> 1.0)
rubocop-rspec (2.22.0)
rubocop (~> 1.33)
rubocop-rspec (2.25.0)
rubocop (~> 1.40)
rubocop-capybara (~> 2.17)
rubocop-factory_bot (~> 2.22)
ruby-progressbar (1.13.0)
Expand Down Expand Up @@ -689,7 +690,7 @@ GEM
concurrent-ruby (~> 1.0)
uglifier (4.2.0)
execjs (>= 0.3.0, < 3)
unicode-display_width (2.4.2)
unicode-display_width (2.5.0)
version_gem (1.1.3)
warden (1.2.9)
rack (>= 2.0.9)
Expand Down
2 changes: 1 addition & 1 deletion lib/requirements/form/file_attachment_metadata_checker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@ def invalid_paper_number?(type, params)
return :blank if number.blank?

regex = "#{self.class}::#{type.upcase}_PAPER_REGEX".constantize
return :invalid unless regex.match?(number)
:invalid unless regex.match?(number)
end
end
4 changes: 2 additions & 2 deletions spec/views/documents/show.html.erb_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@

expect(rendered)
.to include("Summary")
.and have_content(/#{I18n.t!("documents.show.metadata.created_by")}:\s*User 2/)
.and have_content(/#{I18n.t!("documents.show.metadata.last_edited_by")}:\s*User 1/)
.and have_content(/#{I18n.t!('documents.show.metadata.created_by')}:\s*User 2/)
.and have_content(/#{I18n.t!('documents.show.metadata.last_edited_by')}:\s*User 1/)
end

it "shows a fallback title if there is none" do
Expand Down

0 comments on commit 6880074

Please sign in to comment.