diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-01-20 12:10:52 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-01-20 12:10:52 +0300 |
commit | 8994750e4e1beb9f6d1b37c1625fba5868b9babf (patch) | |
tree | 57c6b4e91ceff31047a15f0be5bbdc5ef9129ef3 /spec/rubocop/cop/code_reuse | |
parent | 4ca378cac72f532536a84158b3ee0da80e602151 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/rubocop/cop/code_reuse')
-rw-r--r-- | spec/rubocop/cop/code_reuse/finder_spec.rb | 5 | ||||
-rw-r--r-- | spec/rubocop/cop/code_reuse/presenter_spec.rb | 3 | ||||
-rw-r--r-- | spec/rubocop/cop/code_reuse/serializer_spec.rb | 3 | ||||
-rw-r--r-- | spec/rubocop/cop/code_reuse/service_class_spec.rb | 3 | ||||
-rw-r--r-- | spec/rubocop/cop/code_reuse/worker_spec.rb | 3 |
5 files changed, 0 insertions, 17 deletions
diff --git a/spec/rubocop/cop/code_reuse/finder_spec.rb b/spec/rubocop/cop/code_reuse/finder_spec.rb index 6f04d5e0d60..484a1549a89 100644 --- a/spec/rubocop/cop/code_reuse/finder_spec.rb +++ b/spec/rubocop/cop/code_reuse/finder_spec.rb @@ -2,12 +2,9 @@ require 'fast_spec_helper' require 'rubocop' -require 'rubocop/rspec/support' require_relative '../../../../rubocop/cop/code_reuse/finder' RSpec.describe RuboCop::Cop::CodeReuse::Finder do - include CopHelper - subject(:cop) { described_class.new } it 'flags the use of a Finder inside another Finder' do @@ -23,8 +20,6 @@ RSpec.describe RuboCop::Cop::CodeReuse::Finder do end end SOURCE - - expect(cop.offenses.size).to eq(1) end it 'flags the use of a Finder inside a model class method' do diff --git a/spec/rubocop/cop/code_reuse/presenter_spec.rb b/spec/rubocop/cop/code_reuse/presenter_spec.rb index 8efd4da8aa1..4639854588e 100644 --- a/spec/rubocop/cop/code_reuse/presenter_spec.rb +++ b/spec/rubocop/cop/code_reuse/presenter_spec.rb @@ -2,12 +2,9 @@ require 'fast_spec_helper' require 'rubocop' -require 'rubocop/rspec/support' require_relative '../../../../rubocop/cop/code_reuse/presenter' RSpec.describe RuboCop::Cop::CodeReuse::Presenter do - include CopHelper - subject(:cop) { described_class.new } it 'flags the use of a Presenter in a Service class' do diff --git a/spec/rubocop/cop/code_reuse/serializer_spec.rb b/spec/rubocop/cop/code_reuse/serializer_spec.rb index 74999df5859..84db2e62b41 100644 --- a/spec/rubocop/cop/code_reuse/serializer_spec.rb +++ b/spec/rubocop/cop/code_reuse/serializer_spec.rb @@ -2,12 +2,9 @@ require 'fast_spec_helper' require 'rubocop' -require 'rubocop/rspec/support' require_relative '../../../../rubocop/cop/code_reuse/serializer' RSpec.describe RuboCop::Cop::CodeReuse::Serializer do - include CopHelper - subject(:cop) { described_class.new } it 'flags the use of a Serializer in a Service class' do diff --git a/spec/rubocop/cop/code_reuse/service_class_spec.rb b/spec/rubocop/cop/code_reuse/service_class_spec.rb index 4870daf72dc..b6d94dd749f 100644 --- a/spec/rubocop/cop/code_reuse/service_class_spec.rb +++ b/spec/rubocop/cop/code_reuse/service_class_spec.rb @@ -2,12 +2,9 @@ require 'fast_spec_helper' require 'rubocop' -require 'rubocop/rspec/support' require_relative '../../../../rubocop/cop/code_reuse/service_class' RSpec.describe RuboCop::Cop::CodeReuse::ServiceClass do - include CopHelper - subject(:cop) { described_class.new } it 'flags the use of a Service class in a Finder' do diff --git a/spec/rubocop/cop/code_reuse/worker_spec.rb b/spec/rubocop/cop/code_reuse/worker_spec.rb index 9e015f286d8..42c9303a93b 100644 --- a/spec/rubocop/cop/code_reuse/worker_spec.rb +++ b/spec/rubocop/cop/code_reuse/worker_spec.rb @@ -2,12 +2,9 @@ require 'fast_spec_helper' require 'rubocop' -require 'rubocop/rspec/support' require_relative '../../../../rubocop/cop/code_reuse/worker' RSpec.describe RuboCop::Cop::CodeReuse::Worker do - include CopHelper - subject(:cop) { described_class.new } it 'flags the use of a worker in a controller' do |