test/base/test_item_array.rb in nanoc-4.7.10 vs test/base/test_item_array.rb in nanoc-4.7.11
- old
+ new
@@ -24,44 +24,9 @@
def test_enumerable
assert_equal @one, @items.find { |i| i.identifier == '/one/' }
end
- def test_brackets_with_glob
- @items = Nanoc::Int::IdentifiableCollection.new({ string_pattern_type: 'glob' }, [@one, @two])
-
- assert_equal @one, @items['/on*/']
- assert_equal @two, @items['/*wo/']
- end
-
- def test_brackets_with_identifier
- assert_equal @one, @items['/one/']
- assert_equal @two, @items['/two/']
- assert_nil @items['/max-payne/']
- end
-
- def test_brackets_with_malformed_identifier
- assert_nil @items['one/']
- assert_nil @items['/one']
- assert_nil @items['one']
- assert_nil @items['//one/']
- end
-
- def test_brackets_frozen
- @items.freeze
-
- assert_equal @one, @items['/one/']
- assert_nil @items['/tenthousand/']
- end
-
- def test_regex
- foo = Nanoc::Int::Item.new('Item Foo', {}, '/foo/')
- @items = Nanoc::Int::IdentifiableCollection.new({}, [@one, @two, foo])
-
- assert_equal @one, @items[/n/]
- assert_equal @two, @items[%r{o/}] # not foo
- end
-
def test_less_than_less_than
assert_nil @items['/foo/']
foo = Nanoc::Int::Item.new('Item Foo', {}, '/foo/')
@items = Nanoc::Int::IdentifiableCollection.new({}, [@one, @two, foo])