File: directory.rb

package info (click to toggle)
ruby-aruba 2.1.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,972 kB
  • sloc: ruby: 7,151; javascript: 6,850; makefile: 5
file content (7 lines) | stat: -rw-r--r-- 230 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
shared_examples "an existing directory" do
  it { Array(path).each { |p| expect(File).to be_directory(p) } }
end

shared_examples "a non-existing directory" do
  it { Array(path).each { |p| expect(File).not_to be_exist(p) } }
end