Sha256: 23f31e6274667d3b2f1122c88c1dc4ce5e115da9e37cbb2e6e08530bc38bbd72
Contents?: true
Size: 553 Bytes
Versions: 2
Compression:
Stored size: 553 Bytes
Contents
module Omnitest module Core describe FileSystem do it 'finds files within the search path' do search_path = 'spec/fixtures/src-doc' file = subject.find_file search_path, 'quine' expect(file.relative_path_from path(search_path)).to eq(path('quine.md.erb')) end it 'raises Errno::ENOENT if no file is found' do expect { subject.find_file 'spec/fixtures/src-doc', 'quinez' }.to raise_error Errno::ENOENT end private def path(p) Pathname.new p end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
omnitest-0.2.2 | spec/omnitest/file_finder_spec.rb |
omnitest-0.2.1 | spec/omnitest/file_finder_spec.rb |