test/helper.rb in nanoc-4.7.5 vs test/helper.rb in nanoc-4.7.6
- old
+ new
@@ -247,10 +247,10 @@
def on_windows?
Nanoc.on_windows?
end
def command?(cmd)
- which, null = on_windows? ? %w(where NUL) : ['which', '/dev/null']
+ which, null = on_windows? ? %w[where NUL] : ['which', '/dev/null']
system("#{which} #{cmd} > #{null} 2>&1")
end
def symlinks_supported?
File.symlink nil, nil