Sha256: 9da04a99b0292a91ff41112f45638c615c15210a835f095b6efa1fae8b1e13c8
Contents?: true
Size: 348 Bytes
Versions: 14
Compression:
Stored size: 348 Bytes
Contents
require 'spec_helper' describe "exist" do it 'passes when the file exists' do File.stub(:exists?).with('/some/file/path').and_return(true) '/some/file/path'.should exist end it 'fails when the file does not exist' do File.stub(:exists?).with('/some/file/path').and_return(false) '/some/file/path'.should_not exist end end
Version data entries
14 entries across 14 versions & 1 rubygems