Module: Treebis::Test::TestGlobMatcher

Included in:
TestCase
Defined in:
lib/treebis.rb

Instance Method Summary collapse

Instance Method Details

#test_glob_matcherObject



1250
1251
1252
1253
1254
1255
1256
1257
# File 'lib/treebis.rb', line 1250

def test_glob_matcher
  obj = Object.new
  obj.extend Treebis::DirAsHash::Blacklist::MatcherFactory
  err = assert_raises(RuntimeError) do
    obj.create_matcher(false)
  end
  assert_equal "can't build matcher from false", err.message
end