From c5a88df6b77173b634cc38d85d5c9c2735c69210 Mon Sep 17 00:00:00 2001 From: Robert Speicher Date: Wed, 14 Jun 2017 16:16:06 -0500 Subject: Require rubocop-rspec in the correct location Resolves the `codeclimate` CI failure --- rubocop/cop/rspec/single_line_hook.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'rubocop/cop/rspec') diff --git a/rubocop/cop/rspec/single_line_hook.rb b/rubocop/cop/rspec/single_line_hook.rb index a156b1d34cf..be611054323 100644 --- a/rubocop/cop/rspec/single_line_hook.rb +++ b/rubocop/cop/rspec/single_line_hook.rb @@ -1,3 +1,5 @@ +require 'rubocop-rspec' + module RuboCop module Cop module RSpec @@ -17,7 +19,7 @@ module RuboCop # after(:each) do # undo_something # end - class SingleLineHook < RuboCop::Cop::RSpec::Cop + class SingleLineHook < Cop MESSAGE = "Don't use single-line hook blocks.".freeze def_node_search :rspec_hook?, <<~PATTERN -- cgit v1.2.3