spec/unit/imap/backup/configuration_spec.rb in imap-backup-5.2.0 vs spec/unit/imap/backup/configuration_spec.rb in imap-backup-6.0.0.rc2
- old
+ new
@@ -57,11 +57,11 @@
expect(subject.modified?).to be_truthy
end
end
context "with accounts flagged 'delete'" do
- before { subject.accounts[0].mark_for_deletion! }
+ before { subject.accounts[0].mark_for_deletion }
it "is true" do
expect(subject.modified?).to be_truthy
end
end
@@ -175,10 +175,10 @@
end
before do
allow(subject.accounts[0]).to receive(:to_h) { "Account1" }
allow(subject.accounts[1]).to receive(:to_h) { "Account2" }
- subject.accounts[0].mark_for_deletion!
+ subject.accounts[0].mark_for_deletion
end
it "does not save them" do
expect(JSON).to receive(:pretty_generate).
with(hash_including({accounts: ["Account2"]}))