Sha256: 6ae49a97d828dd6c5b3ed01f59c6612dd59b28c7819545a1258c9945b3d3b269

Contents?: true

Size: 484 Bytes

Versions: 1

Compression:

Stored size: 484 Bytes

Contents

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

1 entries across 1 versions & 1 rubygems

Version Path
nanoc-4.0.0b3 test/base/test_rule.rb