diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2018-09-09 16:39:03 -0300 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2018-09-23 13:59:25 -0300 |
commit | f59c00f10878a1158a0e644a23c97eab302e65f5 (patch) | |
tree | d4af4f2d54d4d92bacde72202663e6aea70a7aec | |
parent | 71464592c640d8782ba1163cb6d427b70c8dbd1c (diff) | |
download | bundler-f59c00f10878a1158a0e644a23c97eab302e65f5.tar.gz |
Move require to a better place for readability
And because the other specs don't need it.
-rw-r--r-- | spec/runtime/setup_spec.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/runtime/setup_spec.rb b/spec/runtime/setup_spec.rb index 7fec55c4c3..8d16b30cb1 100644 --- a/spec/runtime/setup_spec.rb +++ b/spec/runtime/setup_spec.rb @@ -1303,7 +1303,6 @@ end end let(:code) { strip_whitespace(<<-RUBY) } - require "bundler/setup" require "pp" loaded_specs = Gem.loaded_specs.dup #{exemptions.inspect}.each {|s| loaded_specs.delete(s) } @@ -1318,7 +1317,7 @@ end it "activates no gems with -rbundler/setup" do install_gemfile! "" - ruby! code, :env => { :RUBYOPT => activation_warning_hack_rubyopt } + ruby! code, :env => { :RUBYOPT => activation_warning_hack_rubyopt + " -rbundler/setup" } expect(last_command.stdout).to eq("{}") end |