Sha256: f76cb039897380b1de6489c9342e9afe39c6703a3615d29e41a86e4bafb55e54
Contents?: true
Size: 576 Bytes
Versions: 12
Compression:
Stored size: 576 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Imap::Backup::Serializer::Base do context '#initialize' do let(:stat) { double('File::Stat', :mode => 0345) } before do allow(File).to receive(:exist?).with('/base/path').and_return(true) allow(File).to receive(:stat).with('/base/path').and_return(stat) end it 'should fail if file permissions are to lax' do expect do described_class.new('/base/path', 'my_folder') end.to raise_error(RuntimeError, "Permissions on '/base/path' should be 0700, not 0345") end end end
Version data entries
12 entries across 12 versions & 1 rubygems