From d6df7acaf3140143fc6a129e297542222a881719 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Sat, 4 Jan 2020 07:11:59 +0100 Subject: Make test platform independent --- spec/bundler/dsl_spec.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/bundler/dsl_spec.rb b/spec/bundler/dsl_spec.rb index 40739a431b..8252367f99 100644 --- a/spec/bundler/dsl_spec.rb +++ b/spec/bundler/dsl_spec.rb @@ -192,6 +192,7 @@ RSpec.describe Bundler::Dsl do let(:platform) { "ruby" } it "keeps track of the ruby platforms in the dependency" do + allow(Gem::Platform).to receive(:local).and_return(rb) subject.gemspec expect(subject.dependencies.last.platforms).to eq(Bundler::Dependency::REVERSE_PLATFORM_MAP[Gem::Platform::RUBY]) end -- cgit v1.2.1