var expect = require('expect.js');
var ignore = require('../lib/ignore');

describe('ignoring files', function() {
  it('determine if a directory matches an ignore glob', function () {
    expect(ignore.match('/.git')).to.be(true);
    expect(ignore.match('/dir')).to.be(false);
  });
  
  it('determines if a file matches an ignore glob', function () {
    expect(ignore.match('/.git/somefile.js')).to.be(true);
    expect(ignore.match('/somdir/somefile.js')).to.be(false);
  });
})
var expect = require('expect.js');
var ignore = require('../lib/ignore');

describe('ignoring files', function() {
  it('determine if a directory matches an ignore glob', function () {
    expect(ignore.match('/.git')).to.be(true);
    expect(ignore.match('.DS_STORE')).to.be(true);
    expect(ignore.match('/dir')).to.be(false);
  });
  
  it('determines if a file matches an ignore glob', function () {
    expect(ignore.match('/.git/somefile.js')).to.be(true);
    expect(ignore.match('/somdir/somefile.js')).to.be(false);
  });
})
Test for ignoring Mac DS_STORE
Test for ignoring Mac DS_STORE
