Skip to content

Commit

Permalink
Rubocop: Style/ExpandPathArguments
Browse files Browse the repository at this point in the history
  • Loading branch information
cheerfulstoic committed May 22, 2018
1 parent 85385eb commit 1a09c8c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
7 changes: 0 additions & 7 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -225,13 +225,6 @@ Style/EvalWithLocation:
- 'lib/neo4j/active_node/id_property.rb'
- 'spec/unique_class.rb'

# Offense count: 2
# Cop supports --auto-correct.
Style/ExpandPathArguments:
Exclude:
- 'neo4j.gemspec'
- 'test/lib/generators/model_generator_test.rb'

# Offense count: 10
# Configuration parameters: EnforcedStyle.
# SupportedStyles: annotated, template, unannotated
Expand Down
2 changes: 1 addition & 1 deletion neo4j.gemspec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
lib = File.expand_path('../lib/', __FILE__)
lib = File.expand_path('lib', __dir__)
$LOAD_PATH.unshift lib unless $LOAD_PATH.include?(lib)

require 'neo4j/version'
Expand Down
2 changes: 1 addition & 1 deletion test/lib/generators/model_generator_test.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# require 'test_helper'
require File.expand_path('../../../test_helper', __FILE__)
require File.expand_path('../../test_helper', __dir__)
require 'rails/generators/neo4j/model/model_generator.rb'

class Neo4j::Generators::ModelGeneratorTest < Rails::Generators::TestCase
Expand Down

0 comments on commit 1a09c8c

Please sign in to comment.