diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-06-11 11:45:09 +0200 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-06-11 13:09:41 +0200 |
commit | 1b2bbc73642c100749831f30d8a2f0e674c2f944 (patch) | |
tree | 1dfa66b6b83d5bebe05690577e801a633abcd29e /spec | |
parent | f694fe7f67970b1ccfaf56778a242419f66adc3c (diff) | |
download | bundler-1b2bbc73642c100749831f30d8a2f0e674c2f944.tar.gz |
Fix `rake release` not prompting for OTP codedeivid/allow_otp
Co-authored-by: Colby Swandale <me@colby.fyi>
Co-authored-by: Kevin Deisz <kevin.deisz@gmail.com>
Diffstat (limited to 'spec')
-rw-r--r-- | spec/bundler/gem_helper_spec.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/spec/bundler/gem_helper_spec.rb b/spec/bundler/gem_helper_spec.rb index 1452e20967..1ef57c1d00 100644 --- a/spec/bundler/gem_helper_spec.rb +++ b/spec/bundler/gem_helper_spec.rb @@ -233,6 +233,12 @@ RSpec.describe Bundler::GemHelper do Rake.application["release"].invoke end + + it "uses Kernel.system" do + expect(Kernel).to receive(:system).with("gem", "push", app_gem_path.to_s, "--host", "http://example.org").and_return(true) + + Rake.application["release"].invoke + end end it "even if tag already exists" do @@ -255,7 +261,7 @@ RSpec.describe Bundler::GemHelper do before(:each) do Rake.application = Rake::Application.new subject.install - allow(subject).to receive(:sh) + allow(subject).to receive(:sh_with_input) end after(:each) do |