Skip to content

Commit

Permalink
Merge pull request #869 from cucumber/fix-new-rubocop-offenses
Browse files Browse the repository at this point in the history
Fix new RuboCop offenses
  • Loading branch information
mvz authored May 13, 2022
2 parents 4936a34 + 3920ad8 commit d5bd6e3
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion aruba.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Gem::Specification.new do |spec|
spec.add_development_dependency "rake", [">= 12.0", "< 14.0"]
spec.add_development_dependency "rake-manifest", "~> 0.2.0"
spec.add_development_dependency "rspec", "~> 3.11"
spec.add_development_dependency "rubocop", "~> 1.28"
spec.add_development_dependency "rubocop", ["~> 1.28", "!= 1.29.0"]
spec.add_development_dependency "rubocop-packaging", "~> 0.5.0"
spec.add_development_dependency "rubocop-performance", "~> 1.13"
spec.add_development_dependency "rubocop-rspec", "~> 2.8"
Expand Down
2 changes: 1 addition & 1 deletion fixtures/cli-app/lib/cli/app.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "cli/app/version"

::Dir.glob(File.expand_path("**/*.rb", __dir__)).each { |f| require_relative f }
::Dir.glob(File.expand_path("**/*.rb", __dir__)).sort.each { |f| require_relative f }

module Cli
module App
Expand Down
2 changes: 1 addition & 1 deletion fixtures/cli-app/spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@

require_relative "support/aruba"

::Dir.glob(::File.expand_path("support/**/*.rb", __dir__))
::Dir.glob(::File.expand_path("support/**/*.rb", __dir__)).sort
.each { |f| require_relative f }
2 changes: 1 addition & 1 deletion lib/aruba/platforms/unix_platform.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def current_ruby
end

def require_matching_files(pattern, base)
::Dir.glob(::File.expand_path(pattern, base)).each { |f| require_relative f }
::Dir.glob(::File.expand_path(pattern, base)).sort.each { |f| require_relative f }
end

# Create directory and subdirectories
Expand Down
2 changes: 1 addition & 1 deletion spec/aruba/rspec_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

describe "Setting up the environment" do
it "sets HOME to the configured value" do
expect(ENV["HOME"]).to eq aruba.config.home_directory
expect(Dir.home).to eq aruba.config.home_directory
end

it "includes configured command search paths in PATH" do
Expand Down
4 changes: 2 additions & 2 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
end

# Loading support files
Dir.glob(::File.expand_path("support/*.rb", __dir__)).each { |f| require_relative f }
Dir.glob(::File.expand_path("support/**/*.rb", __dir__)).each { |f| require_relative f }
Dir.glob(::File.expand_path("support/*.rb", __dir__)).sort.each { |f| require_relative f }
Dir.glob(::File.expand_path("support/**/*.rb", __dir__)).sort.each { |f| require_relative f }

0 comments on commit d5bd6e3

Please sign in to comment.