Sha256: 623aba2c2a701e987e46851ba7363589ec0779abd1ec87e5bad4cbf39a04ace9

Contents?: true

Size: 548 Bytes

Versions: 2

Compression:

Stored size: 548 Bytes

Contents

require File.dirname(__FILE__) + '/../spec_helper'

describe "IndexedDirectories" do
  it "should be defined" do
    lambda {Picolena::IndexedDirectories}.should_not raise_error(NameError)
  end

  it "should not be empty" do
    Picolena::IndexedDirectories.should_not be_empty
  end

  it "should only contain existing directories" do
    Picolena::IndexedDirectories.keys.all?{|dir|
      File.should be_directory(dir)
    }
  end

  it "should define which files are to be ignored" do
    Picolena::ToIgnore.should be_kind_of(Regexp)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
picolena-0.2.0 lib/picolena/templates/spec/models/index_directories_spec.rb
picolena-0.2.2 lib/picolena/templates/spec/models/index_directories_spec.rb