Sha256: 262b582c0e112116fa4308e8d7848cf3f574d37587ee0655032d030b43219ab2

Contents?: true

Size: 477 Bytes

Versions: 8

Compression:

Stored size: 477 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   = %w(anything else)

    rule = Nanoc::Int::Rule.new(pattern, :string, proc {})

    assert_equal expected, rule.send(:matches, identifier)
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
nanoc-4.1.0a1 test/base/test_rule.rb
nanoc-4.0.2 test/base/test_rule.rb
nanoc-4.0.1 test/base/test_rule.rb
nanoc-4.0.0 test/base/test_rule.rb
nanoc-4.0.0rc3 test/base/test_rule.rb
nanoc-4.0.0rc2 test/base/test_rule.rb
nanoc-4.0.0rc1 test/base/test_rule.rb
nanoc-4.0.0b4 test/base/test_rule.rb