test/helpers/test_rendering.rb in nanoc-3.7.1 vs test/helpers/test_rendering.rb in nanoc-3.7.2

- old
+ new

@@ -10,11 +10,11 @@ File.open('Rules', 'w') do |io| io.write("layout '/foo/', :erb\n") end - File.open('layouts/foo.xyz', 'w') do |io| + File.open('layouts/foo.erb', 'w') do |io| io.write 'This is the <%= @layout.identifier %> layout.' end assert_equal('This is the /foo/ layout.', render('/foo/')) end @@ -36,11 +36,11 @@ File.open('Rules', 'w') do |io| io.write("layout '/foo/', nil\n") end - File.open('layouts/foo.xyz', 'w').close() + File.open('layouts/foo.erb', 'w').close() assert_raises(Nanoc::Errors::CannotDetermineFilter) do render '/foo/' end end @@ -52,11 +52,11 @@ File.open('Rules', 'w') do |io| io.write("layout '/foo/', :asdf\n") end - File.open('layouts/foo.xyz', 'w').close() + File.open('layouts/foo.erb', 'w').close() assert_raises(Nanoc::Errors::UnknownFilter) do render '/foo/' end end @@ -68,10 +68,10 @@ File.open('Rules', 'w') do |io| io.write("layout '/foo/', :erb\n") end - File.open('layouts/foo.xyz', 'w') do |io| + File.open('layouts/foo.erb', 'w') do |io| io.write '[partial-before]<%= yield %>[partial-after]' end _erbout = '[erbout-before]' result = render '/foo/' do