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

Version Path
anvil-core-0.6.0 spec/lib/anvil/assures/directory_assure_spec.rb
anvil-core-0.5.0 spec/lib/anvil/assures/directory_assure_spec.rb
anvil-core-0.4.2 spec/lib/anvil/assures/directory_assure_spec.rb
anvil-core-0.4.1 spec/lib/anvil/assures/directory_assure_spec.rb
anvil-core-0.4.0 spec/lib/anvil/assures/directory_assure_spec.rb
anvil-core-0.3.2 spec/lib/anvil/assures/directory_assure_spec.rb
anvil-core-0.3.1 spec/lib/anvil/assures/directory_assure_spec.rb
anvil-core-0.3.0 spec/lib/anvil/assures/directory_assure_spec.rb
anvil-core-0.2.0 spec/lib/anvil/assures/directory_assure_spec.rb
anvil-core-0.1.0 spec/lib/anvil/assures/directory_assure_spec.rb
anvil-core-0.0.1.pre.alpha.3 spec/lib/anvil/assures/directory_assure_spec.rb
anvil-core-0.0.1.pre.alpha.2 spec/lib/anvil/assures/directory_assure_spec.rb