summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsodacris <wjxa20152015@gmail.com>2024-11-21 07:14:19 +0800
committergit <svn-admin@ruby-lang.org>2024-11-21 10:29:32 +0000
commit42b0d4641699fb8effa3db46d6673a481f557ef1 (patch)
treebcb9819b5e2c542915550097728116f793130402
parentcabfaa9fb4731c0b82847f51f0b5266f8c78415f (diff)
[rubygems/rubygems] move system_gems let commands
https://github.com/rubygems/rubygems/commit/1fc1e74f4d
-rw-r--r--spec/bundler/commands/exec_spec.rb12
1 files changed, 5 insertions, 7 deletions
diff --git a/spec/bundler/commands/exec_spec.rb b/spec/bundler/commands/exec_spec.rb
index 19c5b2a318..d0898502a2 100644
--- a/spec/bundler/commands/exec_spec.rb
+++ b/spec/bundler/commands/exec_spec.rb
@@ -1,10 +1,8 @@
# frozen_string_literal: true
RSpec.describe "bundle exec" do
- let(:system_gems_to_install) { %w[myrack-1.0.0 myrack-0.9.1] }
-
it "works with --gemfile flag" do
- system_gems(system_gems_to_install, path: default_bundle_path)
+ system_gems(%w[myrack-1.0.0 myrack-0.9.1], path: default_bundle_path)
gemfile "CustomGemfile", <<-G
source "https://gem.repo1"
@@ -16,7 +14,7 @@ RSpec.describe "bundle exec" do
end
it "activates the correct gem" do
- system_gems(system_gems_to_install, path: default_bundle_path)
+ system_gems(%w[myrack-1.0.0 myrack-0.9.1], path: default_bundle_path)
gemfile <<-G
source "https://gem.repo1"
@@ -28,7 +26,7 @@ RSpec.describe "bundle exec" do
end
it "works and prints no warnings when HOME is not writable" do
- system_gems(system_gems_to_install, path: default_bundle_path)
+ system_gems(%w[myrack-1.0.0 myrack-0.9.1], path: default_bundle_path)
gemfile <<-G
source "https://gem.repo1"
@@ -386,7 +384,7 @@ RSpec.describe "bundle exec" do
end
it "raises a helpful error when exec'ing to something outside of the bundle" do
- system_gems(system_gems_to_install, path: default_bundle_path)
+ system_gems(%w[myrack-1.0.0 myrack-0.9.1], path: default_bundle_path)
bundle "config set clean false" # want to keep the myrackup binstub
install_gemfile <<-G
@@ -725,7 +723,7 @@ RSpec.describe "bundle exec" do
RUBY
before do
- system_gems(system_gems_to_install, path: default_bundle_path)
+ system_gems(%w[myrack-1.0.0 myrack-0.9.1], path: default_bundle_path)
bundled_app(path).open("w") {|f| f << executable }
bundled_app(path).chmod(0o755)