Sha256: 9b1e710aba629e9171a27248ef39db3070da14d2f2fd8d66b34e8b4372ab7e01

Contents?: true

Size: 466 Bytes

Versions: 1

Compression:

Stored size: 466 Bytes

Contents

# encoding: utf-8

class Nanoc::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
    regexp     = %r</(.*)/(.*)/>
    identifier = '/anything/else/'
    expected   = ['anything', 'else']

    rule = Nanoc::Rule.new(regexp, :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-3.8.0 test/base/test_rule.rb