summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2018-02-03 13:07:59 -0800
committerSamuel Giddins <segiddins@segiddins.me>2018-02-03 13:07:59 -0800
commit468f2f172084e5474a18645d7e82ad5ebfdf1b67 (patch)
treee208689befba3e47a56a14acc53c2b7367bd3115
parent5cf764d48b9c3a4299f39b6b1a7344665e2f3fd1 (diff)
downloadbundler-468f2f172084e5474a18645d7e82ad5ebfdf1b67.tar.gz
Allow simulating particular flavors of windows in the specs
-rw-r--r--spec/support/helpers.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/support/helpers.rb b/spec/support/helpers.rb
index 6201631011..1b52ed5258 100644
--- a/spec/support/helpers.rb
+++ b/spec/support/helpers.rb
@@ -489,10 +489,10 @@ module Spec
ENV["BUNDLER_SPEC_RUBYGEMS_VERSION"] = old if block_given?
end
- def simulate_windows
+ def simulate_windows(platform = mswin)
old = ENV["BUNDLER_SPEC_WINDOWS"]
ENV["BUNDLER_SPEC_WINDOWS"] = "true"
- simulate_platform mswin do
+ simulate_platform platform do
yield
end
ensure