spec/unit/imap/backup/configuration/connection_tester_spec.rb in imap-backup-4.0.2 vs spec/unit/imap/backup/configuration/connection_tester_spec.rb in imap-backup-4.0.3

- old
+ new

@@ -1,18 +1,18 @@ describe Imap::Backup::Configuration::ConnectionTester do describe ".test" do let(:connection) do - instance_double(Imap::Backup::Account::Connection, imap: nil) + instance_double(Imap::Backup::Account::Connection, client: nil) end before do allow(Imap::Backup::Account::Connection).to receive(:new) { connection } end describe "call" do it "tries to connect" do - expect(connection).to receive(:imap) + expect(connection).to receive(:client) subject.test("foo") end end @@ -22,10 +22,10 @@ end end describe "failure" do before do - allow(connection).to receive(:imap).and_raise(error) + allow(connection).to receive(:client).and_raise(error) end context "with no connection" do let(:error) do data = OpenStruct.new(text: "bar")