Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
c5a88df6
Commit
c5a88df6
authored
Jun 14, 2017
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Require rubocop-rspec in the correct location
Resolves the `codeclimate` CI failure
parent
43e1481c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
rubocop/cop/rspec/single_line_hook.rb
rubocop/cop/rspec/single_line_hook.rb
+3
-1
spec/rubocop/cop/rspec/single_line_hook_spec.rb
spec/rubocop/cop/rspec/single_line_hook_spec.rb
+0
-1
No files found.
rubocop/cop/rspec/single_line_hook.rb
View file @
c5a88df6
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
...
...
spec/rubocop/cop/rspec/single_line_hook_spec.rb
View file @
c5a88df6
...
...
@@ -2,7 +2,6 @@ require 'spec_helper'
require
'rubocop'
require
'rubocop/rspec/support'
require
'rubocop-rspec'
require_relative
'../../../../rubocop/cop/rspec/single_line_hook'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment