spec/nanoc/integration/outdatedness_integration_spec.rb in nanoc-4.7.5 vs spec/nanoc/integration/outdatedness_integration_spec.rb in nanoc-4.7.6

- old
+ new

@@ -19,53 +19,53 @@ 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!') FileUtils.touch('content/bar.md', mtime: time) - 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 not outdated after content modification' do File.write('content/foo.md', "---\ntitle: hello\n---\n\nfoooOoooOOoooOooo") FileUtils.touch('content/foo.md', mtime: time) - 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 not outdated/).to_stdout, ) end it 'shows file and dependencies as outdated after title modification' do File.write('content/foo.md', "---\ntitle: bye\n---\n\nfoo") FileUtils.touch('content/foo.md', mtime: time) - 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 @@ -84,50 +84,50 @@ 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 content modification' do File.write('content/foo.md', "---\ntitle: hello\n---\n\nfoooOoooOOoooOooo") - 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 it 'shows file and dependencies as not outdated after title modification' do File.write('content/foo.md', "---\ntitle: bye\n---\n\nfoo") - 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 not outdated/).to_stdout, ) end end @@ -146,50 +146,50 @@ 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 content modification' do File.write('content/foo.md', "---\ntitle: hello\n---\n\nfoooOoooOOoooOooo") - 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 it 'shows file and dependencies as outdated after title modification' do File.write('content/foo.md', "---\ntitle: bye\n---\n\nfoo") - 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 it 'shows file and dependencies as not outdated after rule modification' do @@ -203,13 +203,13 @@ filter :erb write '/bar.html' end EOS - 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 not outdated/).to_stdout, ) end end end