Skip to content

Commit

Permalink
Fix Rails/RootPathnameMethods cop
Browse files Browse the repository at this point in the history
  • Loading branch information
danidoni committed Sep 23, 2024
1 parent 78bd1ce commit 61da528
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spec/rails_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
# run twice. It is recommended that you do not name files matching this glob to
# end with _spec.rb. You can configure this pattern with the --pattern
# option on the command line or in ~/.rspec, .rspec or `.rspec-local`.
Dir[Rails.root.join('spec/support/**/*.rb')].each { |f| require f }
Rails.root.glob('spec/support/**/*.rb').each { |f| require f }

# Checks for pending migrations before tests are run.
# If you are not using ActiveRecord, you can remove this line.
Expand Down
2 changes: 1 addition & 1 deletion spec/support/sphinx_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ def index
end

def index_finished?
Dir[Rails.root.join(ThinkingSphinx::Test.config.indices_location, '*.{new,tmp}*')].empty?
Rails.root.glob("#{ThinkingSphinx::Test.config.indices_location}/*.{new,tmp}*").empty?
end
end

0 comments on commit 61da528

Please sign in to comment.