|
1 | 1 | # frozen_string_literal: true |
2 | 2 |
|
3 | 3 | RSpec.describe "bundle exec" do |
4 | | - let(:system_gems_to_install) { %w[myrack-1.0.0 myrack-0.9.1] } |
5 | | - |
6 | 4 | it "works with --gemfile flag" do |
7 | | - system_gems(system_gems_to_install, path: default_bundle_path) |
| 5 | + system_gems(%w[myrack-1.0.0 myrack-0.9.1], path: default_bundle_path) |
8 | 6 |
|
9 | 7 | gemfile "CustomGemfile", <<-G |
10 | 8 | source "https://gem.repo1" |
|
16 | 14 | end |
17 | 15 |
|
18 | 16 | it "activates the correct gem" do |
19 | | - system_gems(system_gems_to_install, path: default_bundle_path) |
| 17 | + system_gems(%w[myrack-1.0.0 myrack-0.9.1], path: default_bundle_path) |
20 | 18 |
|
21 | 19 | gemfile <<-G |
22 | 20 | source "https://gem.repo1" |
|
28 | 26 | end |
29 | 27 |
|
30 | 28 | it "works and prints no warnings when HOME is not writable" do |
31 | | - system_gems(system_gems_to_install, path: default_bundle_path) |
| 29 | + system_gems(%w[myrack-1.0.0 myrack-0.9.1], path: default_bundle_path) |
32 | 30 |
|
33 | 31 | gemfile <<-G |
34 | 32 | source "https://gem.repo1" |
|
386 | 384 | end |
387 | 385 |
|
388 | 386 | it "raises a helpful error when exec'ing to something outside of the bundle" do |
389 | | - system_gems(system_gems_to_install, path: default_bundle_path) |
| 387 | + system_gems(%w[myrack-1.0.0 myrack-0.9.1], path: default_bundle_path) |
390 | 388 |
|
391 | 389 | bundle "config set clean false" # want to keep the myrackup binstub |
392 | 390 | install_gemfile <<-G |
@@ -725,7 +723,7 @@ def bin_path(a,b,c) |
725 | 723 | RUBY |
726 | 724 |
|
727 | 725 | before do |
728 | | - system_gems(system_gems_to_install, path: default_bundle_path) |
| 726 | + system_gems(%w[myrack-1.0.0 myrack-0.9.1], path: default_bundle_path) |
729 | 727 |
|
730 | 728 | bundled_app(path).open("w") {|f| f << executable } |
731 | 729 | bundled_app(path).chmod(0o755) |
|
0 commit comments