Sha256: aa4496ea744b0f15d457a18cf30ab5f3d2dd266d5666dcb6e025d091848b7f19
Contents?: true
Size: 503 Bytes
Versions: 3
Compression:
Stored size: 503 Bytes
Contents
# encoding: utf-8 class Nanoc::Int::RuleTest < Nanoc::TestCase def test_initialize # TODO: implement end def test_applicable_to # TODO: implement end def test_apply_to # TODO: implement end def test_matches pattern = Nanoc::Int::Pattern.from(%r</(.*)/(.*)/>) identifier = '/anything/else/' expected = ['anything', 'else'] rule = Nanoc::Int::Rule.new(pattern, :string, Proc.new {}) assert_equal expected, rule.send(:matches, identifier) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
nanoc-4.0.0b2 | test/base/test_rule.rb |
nanoc-4.0.0b1 | test/base/test_rule.rb |
nanoc-4.0.0a2 | test/base/test_rule.rb |