1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[bundler/bundler] Skip specs using Process.fork on Windows

https://github.com/bundler/bundler/commit/ebcb25a3c3
This commit is contained in:
David Rodríguez 2019-07-23 13:56:01 +02:00 committed by Hiroshi SHIBATA
parent d7487d6c08
commit 51aaed128a
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2

View file

@ -218,6 +218,8 @@ RSpec.describe "Bundler.with_env helpers" do
end end
it "runs exec inside with_original_env" do it "runs exec inside with_original_env" do
skip "Fork not implemented" if Gem.win_platform?
lib = File.expand_path("../../lib", __dir__) lib = File.expand_path("../../lib", __dir__)
system({ "BUNDLE_FOO" => "bar" }, "ruby -I#{lib} -rbundler -e '#{code}'") system({ "BUNDLE_FOO" => "bar" }, "ruby -I#{lib} -rbundler -e '#{code}'")
expect($?.exitstatus).to eq(0) expect($?.exitstatus).to eq(0)
@ -238,6 +240,8 @@ RSpec.describe "Bundler.with_env helpers" do
end end
it "runs exec inside with_clean_env" do it "runs exec inside with_clean_env" do
skip "Fork not implemented" if Gem.win_platform?
lib = File.expand_path("../../lib", __dir__) lib = File.expand_path("../../lib", __dir__)
system({ "BUNDLE_FOO" => "bar" }, "ruby -I#{lib} -rbundler -e '#{code}'") system({ "BUNDLE_FOO" => "bar" }, "ruby -I#{lib} -rbundler -e '#{code}'")
expect($?.exitstatus).to eq(1) expect($?.exitstatus).to eq(1)
@ -258,6 +262,8 @@ RSpec.describe "Bundler.with_env helpers" do
end end
it "runs exec inside with_clean_env" do it "runs exec inside with_clean_env" do
skip "Fork not implemented" if Gem.win_platform?
lib = File.expand_path("../../lib", __dir__) lib = File.expand_path("../../lib", __dir__)
system({ "BUNDLE_FOO" => "bar" }, "ruby -I#{lib} -rbundler -e '#{code}'") system({ "BUNDLE_FOO" => "bar" }, "ruby -I#{lib} -rbundler -e '#{code}'")
expect($?.exitstatus).to eq(1) expect($?.exitstatus).to eq(1)