Sha256: 68b0954ad2c7365d60794ae37c4f9c1df5f7b53f9f2b40137d7c2e6b7b0a0d1b
Contents?: true
Size: 525 Bytes
Versions: 12
Compression:
Stored size: 525 Bytes
Contents
require 'spec_helper' describe Anvil::DirectoryAssure, fakefs: true do context 'with an existing directory' do before { FileUtils.mkdir('dummy_dir') } after { FileUtils.rm_rf('dummy_dir') } it { should be_assured('dummy_dir') } end context 'with a non existing directory' do it { should_not be_assured('dummy_dir') } end context 'with a file' do before { FileUtils.touch('dummy_file') } after { FileUtils.rm_rf('dummy_file') } it { should_not be_assured('dummy_file') } end end
Version data entries
12 entries across 12 versions & 1 rubygems