Skip to content

Commit

Permalink
Remove cargoculted cop_helper
Browse files Browse the repository at this point in the history
Prior to this commit we copied `cop_helper.rb` over from the main Rubocop
project so that we could re-use it in our specs.
This commit adds the new `rubocop/rspec/support` added in
rubocop/rubocop#3179 and then removes the
copied `cop_helper.rb`, as it is no longer needed.
  • Loading branch information
Brandon High committed Aug 28, 2019
1 parent 0c8abff commit 9a047be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 102 deletions.
102 changes: 0 additions & 102 deletions lib/rubocop/rspec/cop_helper.rb

This file was deleted.

4 changes: 4 additions & 0 deletions spec/shared_examples.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# frozen_string_literal: true

require 'rubocop/rspec/support'

shared_examples 'accepts' do |code|
let(:source) { code }

Expand Down

0 comments on commit 9a047be

Please sign in to comment.