Skip to content

Redesign RubyGit::FileHelpers.which#20

Merged
jcouball merged 3 commits intomainfrom
fix_which
Oct 16, 2020
Merged

Redesign RubyGit::FileHelpers.which#20
jcouball merged 3 commits intomainfrom
fix_which

Conversation

@jcouball
Copy link
Member

@jcouball jcouball commented Oct 14, 2020

Description

Redesign RubyGit::FileHelpers.which so that ENV does not need to be manipulated in order to test. Instead of using ENV directly, add parameters for path and path_ext that default to ENV['PATH'] and ENV['PATHEXT'] respectively. These parameters can be overridden for testing.

Tests were added to test RubyGit::FileHelpers.which directly.

Since the interface for RubyGit::FileHelpers.which changed, RubyGit::GitBinary.default_path (and it's tests) also had to be updated.

What is changed?

  • RubyGit::FileHelpers and its tests.
  • RubyGit::GitBinary and its tests.

What else was changed and why?

  • lib/ruby_git.rb and lib/ruby_git/worktree.rb minor documentation format changes.

@jcouball jcouball requested a review from a team as a code owner October 14, 2020 22:28
@jcouball jcouball requested a review from frankthrock October 15, 2020 03:11
Copy link

@frankthrock frankthrock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. The examples are very clear.

@jcouball jcouball merged commit 9a95a32 into main Oct 16, 2020
@jcouball jcouball deleted the fix_which branch October 16, 2020 01:16
@jcouball jcouball mentioned this pull request Mar 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants