From 9d82962af3bc1c308ae0c2530b9fb162da825da2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Tue, 23 Jul 2019 13:01:33 +0200 Subject: [bundler/bundler] Check for generic lockfiles https://github.com/bundler/bundler/commit/344a881592 --- spec/bundler/bundler/definition_spec.rb | 2 +- spec/bundler/other/platform_spec.rb | 4 +--- spec/bundler/update/git_spec.rb | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) (limited to 'spec') diff --git a/spec/bundler/bundler/definition_spec.rb b/spec/bundler/bundler/definition_spec.rb index 8736fef060..57222f8af5 100644 --- a/spec/bundler/bundler/definition_spec.rb +++ b/spec/bundler/bundler/definition_spec.rb @@ -62,7 +62,7 @@ RSpec.describe Bundler::Definition do rack (1.0.0) PLATFORMS - ruby + #{lockfile_platforms} DEPENDENCIES foo! diff --git a/spec/bundler/other/platform_spec.rb b/spec/bundler/other/platform_spec.rb index 4e50dd2a76..b61a3f1b03 100644 --- a/spec/bundler/other/platform_spec.rb +++ b/spec/bundler/other/platform_spec.rb @@ -3,9 +3,7 @@ RSpec.describe "bundle platform" do context "without flags" do let(:bundle_platform_platforms_string) do - platforms = [rb] - platforms.unshift(specific_local_platform) if Bundler.feature_flag.bundler_3_mode? - platforms.map {|pl| "* #{pl}" }.join("\n") + local_platforms.reverse.map {|pl| "* #{pl}" }.join("\n") end it "returns all the output" do diff --git a/spec/bundler/update/git_spec.rb b/spec/bundler/update/git_spec.rb index 1fc3076368..752033c842 100644 --- a/spec/bundler/update/git_spec.rb +++ b/spec/bundler/update/git_spec.rb @@ -324,7 +324,7 @@ RSpec.describe "bundle update" do rack (1.0.0) PLATFORMS - ruby + #{lockfile_platforms} DEPENDENCIES foo! -- cgit v1.2.3