Skip to content

Commit

Permalink
Use RuboCop RSpec 2.27
Browse files Browse the repository at this point in the history
  • Loading branch information
koic committed Mar 1, 2024
1 parent aa30af9 commit 6dc0e59
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
4 changes: 2 additions & 2 deletions spec/rubocop/config_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion spec/rubocop/rails/schema_loader_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6dc0e59

Please sign in to comment.