Permalink
Browse files

Rubocop: Style/ExpandPathArguments

  • Loading branch information...
cheerfulstoic committed May 22, 2018
1 parent 85385eb commit 1a09c8ca96d44f28cfc924c5f812d79cfcb2a97c
Showing with 2 additions and 9 deletions.
  1. +0 −7 .rubocop_todo.yml
  2. +1 −1 neo4j.gemspec
  3. +1 −1 test/lib/generators/model_generator_test.rb
View
@@ -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
View
@@ -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'
@@ -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

0 comments on commit 1a09c8c

Please sign in to comment.