Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump rubocop-govuk from 4.18.0 to 5.0.1 #534

Merged
merged 2 commits into from
Jun 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 10 additions & 16 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -314,8 +314,8 @@ GEM
opentelemetry-api (~> 1.0)
optic14n (2.1.0)
addressable (~> 2.7)
parallel (1.24.0)
parser (3.3.2.0)
parallel (1.25.1)
parser (3.3.3.0)
ast (~> 2.4.1)
racc
pg (1.5.6)
Expand Down Expand Up @@ -371,8 +371,8 @@ GEM
io-console (~> 0.5)
request_store (1.7.0)
rack (>= 1.4)
rexml (3.2.8)
strscan (>= 3.0.9)
rexml (3.3.1)
strscan
rspec (3.13.0)
rspec-core (~> 3.13.0)
rspec-expectations (~> 3.13.0)
Expand All @@ -399,30 +399,24 @@ GEM
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.31.3)
parser (>= 3.3.1.0)
rubocop-capybara (2.20.0)
rubocop-capybara (2.21.0)
rubocop (~> 1.41)
rubocop-factory_bot (2.25.1)
rubocop (~> 1.41)
rubocop-govuk (4.18.0)
rubocop-govuk (5.0.1)
rubocop (= 1.64.1)
rubocop-ast (= 1.31.3)
rubocop-capybara (= 2.21.0)
rubocop-rails (= 2.25.0)
rubocop-rake (= 0.6.0)
rubocop-rspec (= 2.30.0)
rubocop-rspec (= 3.0.1)
rubocop-rails (2.25.0)
activesupport (>= 4.2.0)
rack (>= 1.1)
rubocop (>= 1.33.0, < 2.0)
rubocop-ast (>= 1.31.1, < 2.0)
rubocop-rake (0.6.0)
rubocop (~> 1.0)
rubocop-rspec (2.30.0)
rubocop (~> 1.40)
rubocop-capybara (~> 2.17)
rubocop-factory_bot (~> 2.22)
rubocop-rspec_rails (~> 2.28)
rubocop-rspec_rails (2.28.3)
rubocop (~> 1.40)
rubocop-rspec (3.0.1)
rubocop (~> 1.61)
ruby-progressbar (1.13.0)
sentry-rails (5.17.3)
railties (>= 5.0)
Expand Down
10 changes: 5 additions & 5 deletions spec/features/http_request_handling_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def app
describe "#location" do
subject { super().location }

it { is_expected.to eq(nil) }
it { is_expected.to be_nil }
end

specify { expect(last_response.headers).not_to include("Cache-Control") }
Expand Down Expand Up @@ -252,7 +252,7 @@ def app
describe "#location" do
subject { super().location }

it { is_expected.to eq(nil) }
it { is_expected.to be_nil }
end
end

Expand Down Expand Up @@ -830,7 +830,7 @@ def app
describe "#location" do
subject { super().location }

it { is_expected.to eq(nil) }
it { is_expected.to be_nil }
end
end

Expand Down Expand Up @@ -1147,7 +1147,7 @@ def app
describe "#location" do
subject { super().location }

it { is_expected.to eq(nil) }
it { is_expected.to be_nil }
end
end
end
Expand Down Expand Up @@ -1285,7 +1285,7 @@ def app
describe "#location" do
subject { super().location }

it { is_expected.to eq(nil) }
it { is_expected.to be_nil }
end
end
end
Expand Down
4 changes: 2 additions & 2 deletions spec/performance/benchmark_spec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require_relative "../../boot"
require_relative "../../lib/benchmark/all"

describe "Benchmarking", performance: true do
describe "Benchmarking", :performance do
include Rack::Test::Methods

def app
Expand All @@ -10,7 +10,7 @@ def app

let(:number_of_runs) { ENV["NUMBER_OF_RUNS"] || 1000 }

it "generates timings for no host, 301, 410, 404" do
it "generates timings for no host, 301, 410, 404" do # rubocop:disable RSpec/NoExpectationExample
Benchmark::All.new(number_of_runs).run!
end
end
2 changes: 1 addition & 1 deletion spec/units/bouncer/canonicalized_request_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

it "returns true if valid URI passed" do
canonicalized_request = described_class.new(env)
allow(canonicalized_request).to receive(:bluri).and_return(instance_double("Rack::Request"))
allow(canonicalized_request).to receive(:bluri).and_return(instance_double(Rack::Request))
expect(canonicalized_request.valid?).to be(true)
end

Expand Down