Sha256: 98354256ecd7a7637cf9309442fd6fb92e5de66398186a03320561db5d94abc5
Contents?: true
Size: 797 Bytes
Versions: 7
Compression:
Stored size: 797 Bytes
Contents
require File.expand_path('../../test_helper', __FILE__) before = Kicker.pre_process_chain.dup recipe :ignore IGNORE = (Kicker.pre_process_chain - before).first describe "The Ignore handler" do it "should remove files that match the given regexp" do ignore(/^fo{2}bar/) files = %w{ Rakefile foobar foobarbaz } IGNORE.call(files) files.should == %w{ Rakefile } end it "should remove files that match the given string" do ignore('bazbla') files = %w{ Rakefile bazbla bazblabla } IGNORE.call(files) files.should == %w{ Rakefile bazblabla } end it "should ignore a few file types by default" do files = %w{ Rakefile foo/bar/dev.log .svn/foo svn-commit.tmp .git/foo tmp } IGNORE.call(files) files.should == %w{ Rakefile } end end
Version data entries
7 entries across 7 versions & 1 rubygems