spec/unit/configuration/asker_spec.rb in imap-backup-1.3.0 vs spec/unit/configuration/asker_spec.rb in imap-backup-1.4.0

- old
+ new

@@ -79,12 +79,14 @@ let(:answer1) { true } let(:answer2) { false } before do @i = 0 - allow(highline).to receive(:ask).with("password: ").and_return(password1) - allow(highline).to receive(:ask).with("repeat password: ").and_return(password2) + allow(highline).to receive(:ask). + with("password: ").and_return(password1) + allow(highline).to receive(:ask). + with("repeat password: ").and_return(password2) allow(highline).to receive(:agree) do answer = answers[@i] @i += 1 answer end @@ -105,10 +107,11 @@ context "different answers" do let(:password2) { "secret" } it "asks to continue" do - expect(highline).to have_received(:agree).at_least(1).times.with(/Continue\?/) + expect(highline).to have_received(:agree). + at_least(1).times.with(/Continue\?/) end end end context "#backup_path" do