Skip to content
Snippets Groups Projects
Commit 6e05bfe3 authored by Thong Kuah's avatar Thong Kuah :speech_balloon:
Browse files

Merge branch 'fast_spec_helper_fix' into 'master'

Use fast_spec_helper for rubocop specs

See merge request gitlab-org/gitlab!37912
parents ae657908 868c633e
No related branches found
No related tags found
No related merge requests found
# frozen_string_literal: true
 
require 'spec_helper'
require 'fast_spec_helper'
require 'rubocop'
require 'rubocop/rspec/support'
require_relative '../../../rubocop/cop/avoid_break_from_strong_memoize'
 
RSpec.describe RuboCop::Cop::AvoidBreakFromStrongMemoize do
RSpec.describe RuboCop::Cop::AvoidBreakFromStrongMemoize, type: :rubocop do
include CopHelper
 
subject(:cop) { described_class.new }
Loading
Loading
@@ -62,7 +61,7 @@ RSpec.describe RuboCop::Cop::AvoidBreakFromStrongMemoize do
end
end
RUBY
expect_next_instance_of(described_class) do |instance|
expect_any_instance_of(described_class) do |instance|
expect(instance).to receive(:add_offense).once
end
 
Loading
Loading
# frozen_string_literal: true
 
require 'spec_helper'
require 'fast_spec_helper'
require 'rubocop'
require 'rubocop/rspec/support'
require_relative '../../../rubocop/cop/avoid_return_from_blocks'
 
RSpec.describe RuboCop::Cop::AvoidReturnFromBlocks do
RSpec.describe RuboCop::Cop::AvoidReturnFromBlocks, type: :rubocop do
include CopHelper
 
subject(:cop) { described_class.new }
Loading
Loading
@@ -29,7 +28,7 @@ RSpec.describe RuboCop::Cop::AvoidReturnFromBlocks do
end
end
RUBY
expect_next_instance_of(described_class) do |instance|
expect_any_instance_of(described_class) do |instance|
expect(instance).to receive(:add_offense).once
end
 
Loading
Loading
# frozen_string_literal: true
 
require 'spec_helper'
require 'fast_spec_helper'
require 'rubocop'
require 'rubocop/rspec/support'
require_relative '../../../../rubocop/cop/migration/drop_table'
 
RSpec.describe RuboCop::Cop::Migration::DropTable do
RSpec.describe RuboCop::Cop::Migration::DropTable, type: :rubocop do
include CopHelper
 
subject(:cop) { described_class.new }
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment