Commit 9e17f242 authored by Uday Aggarwal's avatar Uday Aggarwal

replaced spec_helper with fast_spec_helper for avoid_break_from_strong_memoize_spec

parent 1e4701d6
# frozen_string_literal: true # frozen_string_literal: true
require 'spec_helper' require 'fast_spec_helper'
require 'rubocop' require 'rubocop'
require 'rubocop/rspec/support'
require_relative '../../../rubocop/cop/avoid_break_from_strong_memoize' 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 include CopHelper
subject(:cop) { described_class.new } subject(:cop) { described_class.new }
...@@ -62,7 +61,7 @@ RSpec.describe RuboCop::Cop::AvoidBreakFromStrongMemoize do ...@@ -62,7 +61,7 @@ RSpec.describe RuboCop::Cop::AvoidBreakFromStrongMemoize do
end end
end end
RUBY RUBY
expect_next_instance_of(described_class) do |instance| expect_any_instance_of(described_class) do |instance|
expect(instance).to receive(:add_offense).once expect(instance).to receive(:add_offense).once
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment