test/base/test_compiler_dsl.rb in nanoc-3.7.3 vs test/base/test_compiler_dsl.rb in nanoc-3.7.4

- old
+ new

@@ -104,19 +104,19 @@ end # Create items assert Dir['content/*'].empty? File.open('content/robots.txt', 'w') do |io| - io.write "Hello I am robots" + io.write 'Hello I am robots' end # Compile site = Nanoc::Site.new('.') site.compile # Check paths - assert_equal [ 'output/robots.txt' ], Dir['output/*'] + assert_equal ['output/robots.txt'], Dir['output/*'] end end def test_passthrough_no_ext with_site do @@ -128,19 +128,19 @@ end # Create items assert Dir['content/*'].empty? File.open('content/foo', 'w') do |io| - io.write "Hello I am foo" + io.write 'Hello I am foo' end # Compile site = Nanoc::Site.new('.') site.compile # Check paths - assert_equal [ 'output/foo' ], Dir['output/*'] + assert_equal ['output/foo'], Dir['output/*'] end end def test_passthrough_with_ext_from_static_data_source with_site do @@ -158,19 +158,19 @@ end # Create items FileUtils.mkdir_p('static') File.open('static/foo.txt', 'w') do |io| - io.write "Hello I am foo" + io.write 'Hello I am foo' end # Compile site = Nanoc::Site.new('.') site.compile # Check paths - assert_equal [ 'output/foo.txt' ], Dir['output/*'] + assert_equal ['output/foo.txt'], Dir['output/*'] end end def test_passthrough_priority with_site do @@ -198,12 +198,12 @@ # Compile site = Nanoc::Site.new('.') site.compile # Check paths - assert_equal [ 'output/foo' ], Dir['output/*'] - assert_equal [ 'output/foo/index.html' ], Dir['output/foo/*'] + assert_equal ['output/foo'], Dir['output/*'] + assert_equal ['output/foo/index.html'], Dir['output/foo/*'] end end def test_ignore with_site do @@ -217,23 +217,23 @@ end # Create items assert Dir['content/*'].empty? File.open('content/lame.txt', 'w') do |io| - io.write "Hello I am lame" + io.write 'Hello I am lame' end File.open('content/notlame.txt', 'w') do |io| - io.write "Hello I am not lame" + io.write 'Hello I am not lame' end # Compile site = Nanoc::Site.new('.') site.compile # Check paths - assert_equal [ 'output/notlame.txt'], Dir['output/*'] + assert_equal ['output/notlame.txt'], Dir['output/*'] end end def test_ignore_priority with_site do @@ -261,11 +261,11 @@ # Compile site = Nanoc::Site.new('.') site.compile # Check paths - assert_equal [ 'output/foo' ], Dir['output/*'] - assert_equal [ 'output/foo/index.html' ], Dir['output/foo/*'] + assert_equal ['output/foo'], Dir['output/*'] + assert_equal ['output/foo/index.html'], Dir['output/foo/*'] end end def test_identifier_to_regex_without_wildcards # Create compiler DSL