Skip to content

Commit

Permalink
[rubygems/rubygems] Expect the right permissions on Windows
Browse files Browse the repository at this point in the history
Given Windows doesn't have executable bit.

rubygems/rubygems@35dc3fa845
  • Loading branch information
deivid-rodriguez authored and hsbt committed Aug 31, 2021
1 parent 2d0d1c3 commit ab1edc7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions spec/bundler/commands/binstubs_spec.rb
Expand Up @@ -287,8 +287,6 @@
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)}"
Expand All @@ -297,7 +295,7 @@

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

Expand Down

0 comments on commit ab1edc7

Please sign in to comment.