test/cli/commands/test_compile.rb in nanoc-4.6.1 vs test/cli/commands/test_compile.rb in nanoc-4.6.2
- old
+ new
@@ -164,11 +164,11 @@
def test_file_action_printer_normal
# Create data
item = Nanoc::Int::Item.new('content', {}, '/')
rep = Nanoc::Int::ItemRep.new(item, :default)
- rep.raw_paths[:last] = 'output/foo.txt'
+ rep.raw_paths[:last] = ['output/foo.txt']
rep.compiled = true
# Listen
listener = new_file_action_printer([rep])
listener.start
@@ -186,10 +186,10 @@
def test_file_action_printer_skip
# Create data
item = Nanoc::Int::Item.new('content', {}, '/')
rep = Nanoc::Int::ItemRep.new(item, :default)
- rep.raw_paths[:last] = 'output/foo.txt'
+ rep.raw_paths[:last] = ['output/foo.txt']
# Listen
listener = new_file_action_printer([rep])
listener.start
Nanoc::Int::NotificationCenter.post(:compilation_started, rep)