diff options
author | David RodrÃguez <[email protected]> | 2024-07-05 15:37:07 +0200 |
---|---|---|
committer | git <[email protected]> | 2024-07-09 14:43:18 +0000 |
commit | 1d97c46b35f1299bd1718728a4ece0211fdf34b2 (patch) | |
tree | cfc3e5f77e6f453e1f445ed3c0fc91ac58d6282f /spec/bundler/commands/install_spec.rb | |
parent | ac0e0f0c769afdeb85586b6ccebadf572a0ca088 (diff) |
[rubygems/rubygems] Minor Bundler spec improvements
While working on something else I noticed:
* Usage of uppercased "RUBY" and "JAVA" as platforms, when those don't
really exist.
* Usage of some test gems with "1.0" as gemspec version and "1.0.0" as
actual version.
This commit fixes both inconsistencies to make things more expectable.
https://github.com/rubygems/rubygems/commit/e3ec32e247
Diffstat (limited to 'spec/bundler/commands/install_spec.rb')
-rw-r--r-- | spec/bundler/commands/install_spec.rb | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/spec/bundler/commands/install_spec.rb b/spec/bundler/commands/install_spec.rb index 1aaee8f1d6..dc92aab35d 100644 --- a/spec/bundler/commands/install_spec.rb +++ b/spec/bundler/commands/install_spec.rb @@ -249,15 +249,12 @@ RSpec.describe "bundle install with gem sources" do describe "with a gem that installs multiple platforms" do it "installs gems for the local platform as first choice" do - skip "version is 1.0, not 1.0.0" if Gem.win_platform? - install_gemfile <<-G source "https://gem.repo1" gem "platform_specific" G - run "require 'platform_specific' ; puts PLATFORM_SPECIFIC" - expect(out).to eq("1.0.0 #{Bundler.local_platform}") + expect(the_bundle).to include_gems("platform_specific 1.0 #{Bundler.local_platform}") end it "falls back on plain ruby" do @@ -267,8 +264,7 @@ RSpec.describe "bundle install with gem sources" do gem "platform_specific" G - run "require 'platform_specific' ; puts PLATFORM_SPECIFIC" - expect(out).to eq("1.0.0 RUBY") + expect(the_bundle).to include_gems("platform_specific 1.0 ruby") end it "installs gems for java" do @@ -278,8 +274,7 @@ RSpec.describe "bundle install with gem sources" do gem "platform_specific" G - run "require 'platform_specific' ; puts PLATFORM_SPECIFIC" - expect(out).to eq("1.0.0 JAVA") + expect(the_bundle).to include_gems("platform_specific 1.0 java") end it "installs gems for windows" do @@ -290,8 +285,7 @@ RSpec.describe "bundle install with gem sources" do gem "platform_specific" G - run "require 'platform_specific' ; puts PLATFORM_SPECIFIC" - expect(out).to eq("1.0 x86-mswin32") + expect(the_bundle).to include_gems("platform_specific 1.0 x86-mswin32") end end |