test/base/test_compiler.rb in nanoc-4.7.5 vs test/base/test_compiler.rb in nanoc-4.7.6

- old
+ new

@@ -120,11 +120,11 @@ end end def test_disallow_routes_not_starting_with_slash # Create site - Nanoc::CLI.run %w(create_site bar) + Nanoc::CLI.run %w[create_site bar] FileUtils.cd('bar') do # Create routes File.open('Rules', 'w') do |io| io.write "compile '/**/*' do\n" @@ -147,11 +147,11 @@ end end def test_disallow_duplicate_routes # Create site - Nanoc::CLI.run %w(create_site bar) + Nanoc::CLI.run %w[create_site bar] FileUtils.cd('bar') do # Create routes File.open('Rules', 'w') do |io| io.write "compile '/**/*' do\n" @@ -174,11 +174,11 @@ end end def test_disallow_multiple_snapshots_with_the_same_name # Create site - Nanoc::CLI.run %w(create_site bar) + Nanoc::CLI.run %w[create_site bar] FileUtils.cd('bar') do # Create routes File.open('Rules', 'w') do |io| io.write "compile '/**/*' do\n" @@ -396,12 +396,12 @@ end site = Nanoc::Int::SiteLoader.new.new_from_cwd site.compile - assert_equal Set.new(%w(content/blah.dat)), Set.new(Dir['content/*']) - assert_equal Set.new(%w(output/blah.dat)), Set.new(Dir['output/*']) + assert_equal Set.new(%w[content/blah.dat]), Set.new(Dir['content/*']) + assert_equal Set.new(%w[output/blah.dat]), Set.new(Dir['output/*']) end end def test_tmp_text_items_are_removed_after_compilation with_site do |site| @@ -418,10 +418,10 @@ assert Dir['tmp/text_items/*'].empty? end end def test_find_layouts_by_glob - Nanoc::CLI.run %w(create_site bar) + Nanoc::CLI.run %w[create_site bar] FileUtils.cd('bar') do File.open('Rules', 'w') do |io| io.write "compile '/**/*' do\n" io.write " layout '/default.*'\n" io.write "end\n"