test/base/test_dependency_tracker.rb in nanoc-4.3.0 vs test/base/test_dependency_tracker.rb in nanoc-4.3.1
- old
+ new
@@ -85,10 +85,13 @@
# Verify dependencies
assert_contains_exactly [items[0]], store.objects_outdated_due_to(items[1])
end
def test_enter_and_exit
- items = [mock, mock]
+ items = [
+ Nanoc::Int::Item.new('Foo', {}, '/foo.md'),
+ Nanoc::Int::Item.new('Bar', {}, '/bar.md'),
+ ]
store = Nanoc::Int::DependencyStore.new(items)
tracker = Nanoc::Int::DependencyTracker.new(store)
tracker.enter(items[0])