mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[rubygems/rubygems] Expect the right permissions on Windows
Given Windows doesn't have executable bit. https://github.com/rubygems/rubygems/commit/35dc3fa845
This commit is contained in:
parent
2d0d1c339a
commit
ab1edc75f8
Notes:
git
2021-08-31 19:07:12 +09:00
1 changed files with 1 additions and 3 deletions
|
@ -287,8 +287,6 @@ RSpec.describe "bundle binstubs <gem>" do
|
|||
end
|
||||
|
||||
it "sets correct permissions for binstubs" do
|
||||
skip "https://github.com/rubygems/rubygems/issues/3352" if Gem.win_platform?
|
||||
|
||||
with_umask(0o002) do
|
||||
install_gemfile <<-G
|
||||
source "#{file_uri_for(gem_repo1)}"
|
||||
|
@ -297,7 +295,7 @@ RSpec.describe "bundle binstubs <gem>" do
|
|||
|
||||
bundle "binstubs rack"
|
||||
binary = bundled_app("bin/rackup")
|
||||
expect(File.stat(binary).mode.to_s(8)).to eq("100775")
|
||||
expect(File.stat(binary).mode.to_s(8)).to eq(Gem.win_platform? ? "100644" : "100775")
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue