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

- old
+ new

@@ -3,10 +3,10 @@ describe Imap::Backup::Configuration::ConnectionTester do context ".test" do let(:connection) { double("Imap::Backup::Account::Connection", imap: nil) } before do - allow(Imap::Backup::Account::Connection).to receive(:new).and_return(connection) + allow(Imap::Backup::Account::Connection).to receive(:new) { connection } end context "call" do before { @result = subject.test("foo") }