Sha256: d650d09dabadcc5faa30a6b9c7a9d449b53db4dad36df5f0547e27311f90645a

Contents?: true

Size: 230 Bytes

Versions: 43

Compression:

Stored size: 230 Bytes

Contents

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

Version data entries

43 entries across 43 versions & 3 rubygems

Version Path
aruba-0.11.1 spec/support/shared_examples/directory.rb
aruba-0.11.0.pre4 spec/support/shared_examples/directory.rb
aruba-0.11.0.pre3 spec/support/shared_examples/directory.rb
aruba-0.11.0.pre2 spec/support/shared_examples/directory.rb
aruba-0.11.0.pre spec/support/shared_examples/directory.rb
aruba-0.10.2 spec/support/shared_examples/directory.rb
aruba-0.10.1 spec/support/shared_examples/directory.rb
aruba-0.10.0 spec/support/shared_examples/directory.rb
aruba-0.10.0.pre2 spec/support/shared_examples/directory.rb
aruba-0.10.0.pre spec/support/shared_examples/directory.rb
aruba-0.9.0 spec/support/shared_examples/directory.rb
aruba-0.9.0.pre2 spec/support/shared_examples/directory.rb
aruba-0.9.0.pre spec/support/shared_examples/directory.rb
aruba-0.8.1 spec/support/shared_examples/directory.rb
aruba-0.8.0 spec/support/shared_examples/directory.rb
aruba-0.8.0.pre3 spec/support/shared_examples/directory.rb
aruba-0.8.0.pre2 spec/support/shared_examples/directory.rb
aruba-0.8.0.pre spec/support/shared_examples/directory.rb
aruba-0.7.4 spec/support/shared_examples/directory.rb
aruba-0.7.3 spec/support/shared_examples/directory.rb