Skip to content

Commit

Permalink
Update RuboCop dependency.
Browse files Browse the repository at this point in the history
  • Loading branch information
sleepingkingstudios committed Nov 13, 2024
1 parent cb2e295 commit 61c8788
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 18 deletions.
4 changes: 2 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ group :development, :test do
git: 'https://github.com/sleepingkingstudios/rspec-sleeping_king_studios.git',
branch: 'main'

gem 'rubocop', '~> 1.66'
gem 'rubocop-rspec', '~> 3.0'
gem 'rubocop', '~> 1.68'
gem 'rubocop-rspec', '~> 3.2'

gem 'simplecov', '~> 0.22'
end
8 changes: 0 additions & 8 deletions lib/cuprum/collections/rspec/contracts/scope_contracts.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,11 @@ module ShouldBeAScopeContract
describe 'with a scope of different type' do
let(:other) { Spec::OtherScope.new }

# rubocop:disable Style/RedundantLineContinuation
example_class 'Spec::OtherScope',
Cuprum::Collections::Scopes::Base \
do |klass|
klass.define_method(:type) { :invalid }
end
# rubocop:enable Style/RedundantLineContinuation

it { expect(subject == other).to be false }
end
Expand Down Expand Up @@ -156,13 +154,11 @@ module ShouldBeAContainerScopeContract
describe 'with a scope with the same type' do
let(:other) { Spec::CustomScope.new(scopes: other_scopes) }

# rubocop:disable Style/RedundantLineContinuation
example_class 'Spec::CustomScope',
Cuprum::Collections::Scopes::Base \
do |klass|
klass.include Cuprum::Collections::Scopes::Container
end
# rubocop:enable Style/RedundantLineContinuation

before(:example) do
allow(other).to receive(:type).and_return(scope.type)
Expand Down Expand Up @@ -299,13 +295,11 @@ module ShouldBeAnAllScopeContract
describe 'with a scope with the same type' do
let(:other) { Spec::CustomScope.new }

# rubocop:disable Style/RedundantLineContinuation
example_class 'Spec::CustomScope',
Cuprum::Collections::Scopes::Base \
do |klass|
klass.define_method(:type) { :all }
end
# rubocop:enable Style/RedundantLineContinuation

it { expect(subject == other).to be true }
end
Expand Down Expand Up @@ -682,13 +676,11 @@ module ShouldBeANoneScopeContract
describe 'with a scope with the same type' do
let(:other) { Spec::CustomScope.new }

# rubocop:disable Style/RedundantLineContinuation
example_class 'Spec::CustomScope',
Cuprum::Collections::Scopes::Base \
do |klass|
klass.define_method(:type) { :none }
end
# rubocop:enable Style/RedundantLineContinuation

it { expect(subject == other).to be true }
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -292,13 +292,11 @@ def parse_criteria(*args, &block)
)
end

# rubocop:disable Style/RedundantLineContinuation
example_class 'Spec::CustomScope',
Cuprum::Collections::Scopes::Base \
do |klass|
klass.include Cuprum::Collections::Scopes::Criteria
end
# rubocop:enable Style/RedundantLineContinuation

describe 'with empty criteria' do
let(:other_criteria) { [] }
Expand Down Expand Up @@ -1169,7 +1167,6 @@ module ShouldFilterDataByCriteriaContract
describe 'with empty data' do
let(:data) { [] }

# rubocop:disable Style/RedundantLineContinuation
it 'should return an empty result or raise an exception',
:aggregate_failures \
do
Expand All @@ -1186,7 +1183,6 @@ module ShouldFilterDataByCriteriaContract
expect(actual).to be == []
# :nocov:
end
# rubocop:enable Style/RedundantLineContinuation
end

wrap_context 'with data' do
Expand Down
4 changes: 2 additions & 2 deletions spec/cuprum/collections/basic/scopes/base_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -103,15 +103,15 @@
context 'with a scope subclass' do
let(:described_class) { Spec::HasSeriesScope }

# rubocop:disable RSpec/DescribedClass, Style/RedundantLineContinuation
# rubocop:disable RSpec/DescribedClass
example_class 'Spec::HasSeriesScope',
Cuprum::Collections::Basic::Scopes::Base \
do |klass|
klass.define_method :match? do |item:|
!(item['series'].nil? || item['series'].empty?)
end
end
# rubocop:enable RSpec/DescribedClass, Style/RedundantLineContinuation
# rubocop:enable RSpec/DescribedClass

describe '#call' do
describe 'with an empty Array' do
Expand Down
2 changes: 0 additions & 2 deletions spec/cuprum/collections/scope_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,11 @@ def parse_criteria(...)
describe 'with a scope with the same type' do
let(:other) { Spec::CustomScope.new(criteria: other_criteria) }

# rubocop:disable Style/RedundantLineContinuation
example_class 'Spec::CustomScope',
Cuprum::Collections::Scopes::Base \
do |klass|
klass.include Cuprum::Collections::Scopes::Criteria
end
# rubocop:enable Style/RedundantLineContinuation

describe 'with empty criteria' do
let(:other_criteria) { [] }
Expand Down

0 comments on commit 61c8788

Please sign in to comment.