From 6dc0e59c693c4d714ab6258da2ec04c9a55a8141 Mon Sep 17 00:00:00 2001 From: Koichi ITO Date: Fri, 1 Mar 2024 14:09:59 +0900 Subject: [PATCH] Use RuboCop RSpec 2.27 --- Gemfile | 2 +- spec/rubocop/config_spec.rb | 4 ++-- spec/rubocop/rails/schema_loader_spec.rb | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Gemfile b/Gemfile index 12787955f4..b958bb4b69 100644 --- a/Gemfile +++ b/Gemfile @@ -11,7 +11,7 @@ gem 'rake' gem 'rspec' gem 'rubocop', github: 'rubocop/rubocop' gem 'rubocop-performance', '~> 1.20.0' -gem 'rubocop-rspec', '~> 2.26.0' +gem 'rubocop-rspec', '~> 2.27.0' gem 'simplecov' gem 'test-queue' gem 'yard', '~> 0.9' diff --git a/spec/rubocop/config_spec.rb b/spec/rubocop/config_spec.rb index dbb727d529..0120f1e2ab 100644 --- a/spec/rubocop/config_spec.rb +++ b/spec/rubocop/config_spec.rb @@ -44,7 +44,7 @@ context 'and lock files do not exist' do it 'uses the default rails version' do - default = RuboCop::Config::DEFAULT_RAILS_VERSION + default = described_class::DEFAULT_RAILS_VERSION expect(configuration.target_rails_version).to eq default end end @@ -170,7 +170,7 @@ 1.16.1 LOCKFILE create_file(lock_file_path, content) - default = RuboCop::Config::DEFAULT_RAILS_VERSION + default = described_class::DEFAULT_RAILS_VERSION expect(configuration.target_rails_version).to eq default end end diff --git a/spec/rubocop/rails/schema_loader_spec.rb b/spec/rubocop/rails/schema_loader_spec.rb index adaaf906ee..4dfd7c0743 100644 --- a/spec/rubocop/rails/schema_loader_spec.rb +++ b/spec/rubocop/rails/schema_loader_spec.rb @@ -50,7 +50,7 @@ shared_examples 'returns a schema' do it 'returns a schema' do - klass = RuboCop::Rails::SchemaLoader::Schema + klass = described_class::Schema expect(loaded_schema.is_a?(klass)).to be(true) expect(loaded_schema.tables.size).to eq 2 end