Commit c5a88df6 authored by Robert Speicher's avatar Robert Speicher

Require rubocop-rspec in the correct location

Resolves the `codeclimate` CI failure
parent 43e1481c
require 'rubocop-rspec'
module RuboCop module RuboCop
module Cop module Cop
module RSpec module RSpec
...@@ -17,7 +19,7 @@ module RuboCop ...@@ -17,7 +19,7 @@ module RuboCop
# after(:each) do # after(:each) do
# undo_something # undo_something
# end # end
class SingleLineHook < RuboCop::Cop::RSpec::Cop class SingleLineHook < Cop
MESSAGE = "Don't use single-line hook blocks.".freeze MESSAGE = "Don't use single-line hook blocks.".freeze
def_node_search :rspec_hook?, <<~PATTERN def_node_search :rspec_hook?, <<~PATTERN
......
...@@ -2,7 +2,6 @@ require 'spec_helper' ...@@ -2,7 +2,6 @@ require 'spec_helper'
require 'rubocop' require 'rubocop'
require 'rubocop/rspec/support' require 'rubocop/rspec/support'
require 'rubocop-rspec'
require_relative '../../../../rubocop/cop/rspec/single_line_hook' require_relative '../../../../rubocop/cop/rspec/single_line_hook'
......
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