diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2020-01-04 07:11:59 +0100 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2020-01-04 15:26:32 +0100 |
commit | d6df7acaf3140143fc6a129e297542222a881719 (patch) | |
tree | 235c0000cde9fbdb4af722b33fc94260b05bc9a7 | |
parent | e70d0f3d02c8c084b61969e71d1fa28a15a6d0ca (diff) | |
download | bundler-make_test_platform_independent.tar.gz |
Make test platform independentmake_test_platform_independent
-rw-r--r-- | spec/bundler/dsl_spec.rb | 1 |
1 files changed, 1 insertions, 0 deletions
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 |