summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-06-11 11:45:09 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2019-08-03 09:29:55 +0900
commita685a8643f3897913aa0aeeca3f1392bb9da1cf8 (patch)
tree0a03d43188618f9a94d0c8346d4a77b7bba068f3 /spec
parent51bdc9433b92b60806ac535e291bf3fffd243e47 (diff)
[bundler/bundler] Fix `rake release` not prompting for OTP code
Co-authored-by: Colby Swandale <me@colby.fyi> Co-authored-by: Kevin Deisz <kevin.deisz@gmail.com> https://github.com/bundler/bundler/commit/1b2bbc7364
Diffstat (limited to 'spec')
-rw-r--r--spec/bundler/bundler/gem_helper_spec.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/spec/bundler/bundler/gem_helper_spec.rb b/spec/bundler/bundler/gem_helper_spec.rb
index d104925de4..a21fd4c835 100644
--- a/spec/bundler/bundler/gem_helper_spec.rb
+++ b/spec/bundler/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