summaryrefslogtreecommitdiff
path: root/rubocop
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2017-06-14 16:16:06 -0500
committerRobert Speicher <rspeicher@gmail.com>2017-06-14 17:08:34 -0500
commitc5a88df6b77173b634cc38d85d5c9c2735c69210 (patch)
treee520a70d6b4e659ea3cbf561002b33fbb95a1c48 /rubocop
parent43e1481c8191651880fe20ff2b07a5501a5f7112 (diff)
downloadgitlab-ce-c5a88df6b77173b634cc38d85d5c9c2735c69210.tar.gz
Require rubocop-rspec in the correct locationrs-fix-codeclimate-build
Resolves the `codeclimate` CI failure
Diffstat (limited to 'rubocop')
-rw-r--r--rubocop/cop/rspec/single_line_hook.rb4
1 files changed, 3 insertions, 1 deletions
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