diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2018-02-03 13:07:59 -0800 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2018-02-03 13:07:59 -0800 |
commit | 468f2f172084e5474a18645d7e82ad5ebfdf1b67 (patch) | |
tree | e208689befba3e47a56a14acc53c2b7367bd3115 | |
parent | 5cf764d48b9c3a4299f39b6b1a7344665e2f3fd1 (diff) | |
download | bundler-468f2f172084e5474a18645d7e82ad5ebfdf1b67.tar.gz |
Allow simulating particular flavors of windows in the specs
-rw-r--r-- | spec/support/helpers.rb | 4 |
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 |