summaryrefslogtreecommitdiff
path: root/spec/runtime/inline_spec.rb
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-04-12 22:03:06 +0200
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-04-24 11:25:36 +0200
commit2c75b6d63efb93dfd448058bd16170cc21284dea (patch)
treeb82e8744ed69ebd1f309d55202c5f20b6f0d941f /spec/runtime/inline_spec.rb
parent5c26795f26b72e1a2faddd12448b19602aae8399 (diff)
downloadbundler-2c75b6d63efb93dfd448058bd16170cc21284dea.tar.gz
Skip platform warnings in inline modeskip_platform_warnings_during_bundle_inline
Since there's no lock file, I don't think they make sense.
Diffstat (limited to 'spec/runtime/inline_spec.rb')
-rw-r--r--spec/runtime/inline_spec.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/runtime/inline_spec.rb b/spec/runtime/inline_spec.rb
index d837425414..d53c3d1c15 100644
--- a/spec/runtime/inline_spec.rb
+++ b/spec/runtime/inline_spec.rb
@@ -290,4 +290,17 @@ RSpec.describe "bundler/inline#gemfile" do
expect(last_command).to be_success
expect(out).to eq "1.0.0"
end
+
+ it "skips platform warnings" do
+ simulate_platform "ruby"
+
+ script <<-RUBY
+ gemfile(true) do
+ source "file://#{gem_repo1}"
+ gem "rack", platform: :jruby
+ end
+ RUBY
+
+ expect(err).to be_empty
+ end
end