Sha256: bd2dafaece9cabfbb26441d70181c870d4cac7562d1904cee2d7df304a563d39

Contents?: true

Size: 433 Bytes

Versions: 1

Compression:

Stored size: 433 Bytes

Contents

require 'spec_helper'

describe AktionTest::Matchers::FileSystem::DirectoryExistanceMatcher do
  it "accepts an existing directory" do
    File.expand_path(File.join(__FILE__, '..')).should be_a_directory
  end

  it "does not accept a non-existant directory" do
    File.expand_path(File.join(__FILE__, '..', 'foo')).should_not be_a_directory
  end

  it "does not accept a file" do
    __FILE__.should_not be_a_directory
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
aktion_test-0.1.0 spec/matchers/be_a_directory_spec.rb