test/base/test_compiler.rb in nanoc-4.2.1 vs test/base/test_compiler.rb in nanoc-4.2.2

- old
+ new

@@ -154,11 +154,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" @@ -181,11 +181,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" @@ -207,14 +207,14 @@ end end end def test_compile_should_recompile_all_reps - Nanoc::CLI.run %w( create_site bar ) + Nanoc::CLI.run %w(create_site bar) FileUtils.cd('bar') do - Nanoc::CLI.run %w( compile ) + Nanoc::CLI.run %w(compile) site = Nanoc::Int::SiteLoader.new.new_from_cwd site.compile # At this point, even the already compiled items in the previous pass @@ -223,11 +223,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" @@ -445,12 +445,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| @@ -467,10 +467,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"