Skip to content

Commit 1ecf75a

Browse files
Merge pull request #6700 from rubygems/fix-locale-spec-issues
Make some specs locale independent
2 parents ee3adc4 + f869fb8 commit 1ecf75a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bundler/spec/install/gemfile/git_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1148,7 +1148,7 @@
11481148
it "gives a helpful error message when the remote branch no longer exists" do
11491149
build_git "foo"
11501150

1151-
install_gemfile <<-G, :raise_on_error => false
1151+
install_gemfile <<-G, :env => { "LANG" => "en" }, :raise_on_error => false
11521152
source "#{file_uri_for(gem_repo1)}"
11531153
gem "foo", :git => "#{file_uri_for(lib_path("foo-1.0"))}", :branch => "deadbeef"
11541154
G

bundler/spec/lock/git_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
gem 'foo', :git => "#{lib_path("foo-1.0")}", :branch => "bad"
2929
G
3030

31-
bundle "lock --update foo", :raise_on_error => false
31+
bundle "lock --update foo", :env => { "LANG" => "en" }, :raise_on_error => false
3232

3333
expect(err).to include("Revision bad does not exist in the repository")
3434
end

0 commit comments

Comments
 (0)