spec/lib/capistrano/configuration/question_spec.rb in capistrano-3.11.0 vs spec/lib/capistrano/configuration/question_spec.rb in capistrano-3.11.1
- old
+ new
@@ -56,10 +56,10 @@
it "returns the default as the value" do
expect(question.call).to eq(branch)
end
end
- context "tty unavailable" do
+ context "tty unavailable", capture_io: true do
before do
$stdin.expects(:gets).never
$stdin.expects(:tty?).returns(false)
end