diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-07-23 13:11:33 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2019-08-03 09:29:59 +0900 |
commit | d7487d6c0845f89b0d640d1e22a4a10d1ffdb1a3 (patch) | |
tree | 1b9c71f1fd29bad6f19d36a4fd197ea17b3c688d /spec/bundler/commands | |
parent | 9d82962af3bc1c308ae0c2530b9fb162da825da2 (diff) | |
download | ruby-d7487d6c0845f89b0d640d1e22a4a10d1ffdb1a3.tar.gz |
[bundler/bundler] Try make some specs platform independent
https://github.com/bundler/bundler/commit/b5900e57a4
Diffstat (limited to 'spec/bundler/commands')
-rw-r--r-- | spec/bundler/commands/add_spec.rb | 1 | ||||
-rw-r--r-- | spec/bundler/commands/install_spec.rb | 2 | ||||
-rw-r--r-- | spec/bundler/commands/post_bundle_message_spec.rb | 4 |
3 files changed, 7 insertions, 0 deletions
diff --git a/spec/bundler/commands/add_spec.rb b/spec/bundler/commands/add_spec.rb index 947dfbcfaa..fdfca5d8f2 100644 --- a/spec/bundler/commands/add_spec.rb +++ b/spec/bundler/commands/add_spec.rb @@ -134,6 +134,7 @@ RSpec.describe "bundle add" do end it "shows error message when gem cannot be found" do + bundle "config set force_ruby_platform true" bundle "add 'werk_it'" expect(err).to match("Could not find gem 'werk_it' in") diff --git a/spec/bundler/commands/install_spec.rb b/spec/bundler/commands/install_spec.rb index 5dfce3a2c3..e279d71827 100644 --- a/spec/bundler/commands/install_spec.rb +++ b/spec/bundler/commands/install_spec.rb @@ -524,6 +524,8 @@ RSpec.describe "bundle install with gem sources" do describe "when requesting a quiet install via --quiet" do it "should be quiet" do + bundle "config set force_ruby_platform true" + gemfile <<-G gem 'rack' G diff --git a/spec/bundler/commands/post_bundle_message_spec.rb b/spec/bundler/commands/post_bundle_message_spec.rb index 228893f552..6fd4fb7089 100644 --- a/spec/bundler/commands/post_bundle_message_spec.rb +++ b/spec/bundler/commands/post_bundle_message_spec.rb @@ -101,6 +101,10 @@ RSpec.describe "post bundle message" do end describe "with misspelled or non-existent gem name" do + before do + bundle "config set force_ruby_platform true" + end + it "should report a helpful error message", :bundler => "< 3" do install_gemfile <<-G source "#{file_uri_for(gem_repo1)}" |