Sha256: 2a310790df275b15eab320595422c973ca13d8cc5044e71ca2a7824b84f9fcfd

Contents?: true

Size: 383 Bytes

Versions: 1

Compression:

Stored size: 383 Bytes

Contents

require 'spec_helper'

describe AktionTest::Matchers::FileSystem::FileExistanceMatcher do
  it "should accept an existing file" do
    __FILE__.should be_a_file 
  end

  it "should not accept a non-existant file" do
    File.join(__FILE__, '..', 'foo').should_not be_a_file
  end

  it "should not accept a directory" do
    File.join(__FILE__, '..').should_not be_a_file
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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