spec/nanoc/regressions/gh_970b_spec.rb in nanoc-4.7.5 vs spec/nanoc/regressions/gh_970b_spec.rb in nanoc-4.7.6

- old
+ new

@@ -13,38 +13,38 @@ write '/bar.html' end EOS end - before { Nanoc::CLI.run(%w(compile)) } + before { Nanoc::CLI.run(%w[compile]) } it 'shows default rep outdatedness' do - expect { Nanoc::CLI.run(%w(show-data --no-color)) }.to( + expect { Nanoc::CLI.run(%w[show-data --no-color]) }.to( output(/^item \/foo\.md, rep default:\n is not outdated/).to_stdout, ) - expect { Nanoc::CLI.run(%w(show-data --no-color)) }.to( + expect { Nanoc::CLI.run(%w[show-data --no-color]) }.to( output(/^item \/bar\.md, rep default:\n is not outdated/).to_stdout, ) end it 'shows file as outdated after modification' do File.write('content/bar.md', 'JUST BAR!') - expect { Nanoc::CLI.run(%w(show-data --no-color)) }.to( + expect { Nanoc::CLI.run(%w[show-data --no-color]) }.to( output(/^item \/foo\.md, rep default:\n is not outdated/).to_stdout, ) - expect { Nanoc::CLI.run(%w(show-data --no-color)) }.to( + expect { Nanoc::CLI.run(%w[show-data --no-color]) }.to( output(/^item \/bar\.md, rep default:\n is outdated:/).to_stdout, ) end it 'shows file and dependencies as outdated after modification' do File.write('content/foo.md', 'FOO!') - expect { Nanoc::CLI.run(%w(show-data --no-color)) }.to( + expect { Nanoc::CLI.run(%w[show-data --no-color]) }.to( output(/^item \/foo\.md, rep default:\n is outdated:/).to_stdout, ) - expect { Nanoc::CLI.run(%w(show-data --no-color)) }.to( + expect { Nanoc::CLI.run(%w[show-data --no-color]) }.to( output(/^item \/bar\.md, rep default:\n is outdated:/).to_stdout, ) end end