Sha256: a826cf8c2c7366fc6df8c22895e6b8023b2bb49c86b53e75af212e19279d4dcf
Contents?: true
Size: 380 Bytes
Versions: 7
Compression:
Stored size: 380 Bytes
Contents
require 'spec_helper' describe "exist" do it 'passes when the file exists' do allow(File).to receive(:exist?).with('/some/file/path').and_return(true) expect('/some/file/path').to exist end it 'fails when the file does not exist' do allow(File).to receive(:exist?).with('/some/file/path').and_return(false) expect('/some/file/path').to_not exist end end
Version data entries
7 entries across 7 versions & 1 rubygems