spec/unit/imap/backup/utils_spec.rb in imap-backup-2.0.0 vs spec/unit/imap/backup/utils_spec.rb in imap-backup-2.1.0

- old
+ new

@@ -1,9 +1,7 @@ -require "spec_helper" - describe Imap::Backup::Utils do let(:filename) { "foobar" } - let(:stat) { double("File::Stat", mode: mode) } + let(:stat) { instance_double(File::Stat, mode: mode) } let(:mode) { 0o777 } let(:exists) { true } before do allow(File).to receive(:stat).and_return(stat)