mirror of
https://github.com/ruby/ruby.git
synced 2025-08-24 21:44:30 +02:00
[rubygems/rubygems] Unify win_platform? to Gem.win_platform?
b18a4ef076
This commit is contained in:
parent
cbeea5f3e6
commit
a464951fc7
24 changed files with 63 additions and 77 deletions
|
@ -500,7 +500,7 @@ Removed '/CN=alternate/DC=example'
|
|||
|
||||
mask = 0100600 & (~File.umask)
|
||||
|
||||
assert_equal mask, File.stat(path).mode unless win_platform?
|
||||
assert_equal mask, File.stat(path).mode unless Gem.win_platform?
|
||||
end
|
||||
|
||||
def test_execute_sign_encrypted_key
|
||||
|
@ -529,7 +529,7 @@ Removed '/CN=alternate/DC=example'
|
|||
|
||||
mask = 0100600 & (~File.umask)
|
||||
|
||||
assert_equal mask, File.stat(path).mode unless win_platform?
|
||||
assert_equal mask, File.stat(path).mode unless Gem.win_platform?
|
||||
end
|
||||
|
||||
def test_execute_sign_default
|
||||
|
@ -561,7 +561,7 @@ Removed '/CN=alternate/DC=example'
|
|||
|
||||
mask = 0100600 & (~File.umask)
|
||||
|
||||
assert_equal mask, File.stat(path).mode unless win_platform?
|
||||
assert_equal mask, File.stat(path).mode unless Gem.win_platform?
|
||||
end
|
||||
|
||||
def test_execute_sign_default_encrypted_key
|
||||
|
@ -593,7 +593,7 @@ Removed '/CN=alternate/DC=example'
|
|||
|
||||
mask = 0100600 & (~File.umask)
|
||||
|
||||
assert_equal mask, File.stat(path).mode unless win_platform?
|
||||
assert_equal mask, File.stat(path).mode unless Gem.win_platform?
|
||||
end
|
||||
|
||||
def test_execute_sign_no_cert
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue