test/base/test_rule.rb in nanoc-3.8.0 vs test/base/test_rule.rb in nanoc-4.0.0a1
- old
+ new
@@ -1,8 +1,8 @@
# encoding: utf-8
-class Nanoc::RuleTest < Nanoc::TestCase
+class Nanoc::Int::RuleTest < Nanoc::TestCase
def test_initialize
# TODO: implement
end
def test_applicable_to
@@ -16,10 +16,10 @@
def test_matches
regexp = %r</(.*)/(.*)/>
identifier = '/anything/else/'
expected = ['anything', 'else']
- rule = Nanoc::Rule.new(regexp, :string, Proc.new {})
+ rule = Nanoc::Int::Rule.new(regexp, :string, Proc.new {})
assert_equal expected, rule.send(:matches, identifier)
end
end