diff options
author | Bundlerbot <bot@bundler.io> | 2019-03-04 13:18:26 +0000 |
---|---|---|
committer | Bundlerbot <bot@bundler.io> | 2019-03-04 13:18:26 +0000 |
commit | f3c08b72b1bb729e41674fc87e7989a421956c41 (patch) | |
tree | 08ebf415f54ef4996b7741ef6b5502a06c0a8533 | |
parent | 5794f4e6c9b6dd5448ee62b4fdf49371d9006754 (diff) | |
parent | 97f89a8289d25a677fc0165f9b1dac7fc3218314 (diff) | |
download | bundler-f3c08b72b1bb729e41674fc87e7989a421956c41.tar.gz |
Merge #7015
7015: Expand comparison path for Windows compat r=deivid-rodriguez a=janpio
### What was the end-user problem that led to this PR?
A specific test (#6890) was failing...
### What was your diagnosis of the problem?
... because the comparison was missing the drive letter on Windows.
### What is your fix for the problem, implemented in this PR?
I added expansion of the path that was already present in the implementation but not the test.
### Why did you choose this fix out of the possible options?
Makes the test pass and looks right.
---
closes #6890
fixes 1 failing test on Windows
Co-authored-by: Jan Piotrowski <piotrowski+git@gmail.com>
-rw-r--r-- | spec/bundler/shared_helpers_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/bundler/shared_helpers_spec.rb b/spec/bundler/shared_helpers_spec.rb index 1d4085d209..445bc18265 100644 --- a/spec/bundler/shared_helpers_spec.rb +++ b/spec/bundler/shared_helpers_spec.rb @@ -14,7 +14,7 @@ RSpec.describe Bundler::SharedHelpers do before { ENV["BUNDLE_GEMFILE"] = "/path/Gemfile" } context "Gemfile is present" do - let(:expected_gemfile_path) { Pathname.new("/path/Gemfile") } + let(:expected_gemfile_path) { Pathname.new("/path/Gemfile").expand_path } it "returns the Gemfile path" do expect(subject.default_gemfile).to eq(expected_gemfile_path) |