diff options
author | johnnyshields <johnny.shields@gmail.com> | 2023-02-18 22:46:35 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2023-03-03 09:50:29 +0000 |
commit | 79ede4ae9911fdb180406b1a8adc7ee02e187a50 (patch) | |
tree | 6599a55817081ad1180902023daaf00cf1a49879 /spec/bundler/bundler | |
parent | 6b46057e5c9524e11c004a541bb17a5871767d44 (diff) | |
download | ruby-79ede4ae9911fdb180406b1a8adc7ee02e187a50.tar.gz |
[rubygems/rubygems] Alias CurrentRuby#mswin?, mswin64?, mingw?, x64_mingw? to #windows?. (This is done instead of logging a deprecation warning.)
https://github.com/rubygems/rubygems/commit/b9fcc7c0ab
Diffstat (limited to 'spec/bundler/bundler')
-rw-r--r-- | spec/bundler/bundler/dependency_spec.rb | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/spec/bundler/bundler/dependency_spec.rb b/spec/bundler/bundler/dependency_spec.rb index 6e346c36c1..1ef511f1aa 100644 --- a/spec/bundler/bundler/dependency_spec.rb +++ b/spec/bundler/bundler/dependency_spec.rb @@ -89,8 +89,11 @@ RSpec.describe Bundler::Dependency do :windows_30 => Gem::Platform::WINDOWS, :windows_31 => Gem::Platform::WINDOWS, :windows_32 => Gem::Platform::WINDOWS, - :windows_33 => Gem::Platform::WINDOWS, - :mswin => Gem::Platform::MSWIN, + :windows_33 => Gem::Platform::WINDOWS } + end + + let(:deprecated) do + { :mswin => Gem::Platform::MSWIN, :mswin_18 => Gem::Platform::MSWIN, :mswin_19 => Gem::Platform::MSWIN, :mswin_20 => Gem::Platform::MSWIN, @@ -151,7 +154,7 @@ RSpec.describe Bundler::Dependency do # rubocop:enable Naming/VariableNumber it "includes all platforms" do - expect(subject).to eq(platforms) + expect(subject).to eq(platforms.merge(deprecated)) end end end |