Sha256: 2a4d23b92904cd46125bd34968f513b9400c4e95e668d72b271a1a4ac0d4bfad
Contents?: true
Size: 680 Bytes
Versions: 48
Compression:
Stored size: 680 Bytes
Contents
# -*- coding: utf-8 -*- # # @file # @brief # @author ongaeshi # @date 2012/03/02 require 'milkode/common/ignore_checker.rb' require 'test_helper' class TestIgnoreChecker < Test::Unit::TestCase include Milkode def test_basic c = IgnoreChecker.new c.add IgnoreSetting.new("/", ["/rdoc", "/test/data", "*.lock"]) c.add IgnoreSetting.new("/pkg", ["*.gem"]) assert_equal false, c.ignore?("/lib/test.rb") assert_equal true, c.ignore?("/pkg/hoge.gem") assert_equal false, c.ignore?("/pkg/hoge.txt") assert_equal true, c.ignore?("/test.lock") assert_equal true, c.ignore?("/rdoc") assert_equal true, c.ignore?("/test/data") end end
Version data entries
48 entries across 48 versions & 1 rubygems