test/helpers/test_capturing.rb in nanoc-4.7.9 vs test/helpers/test_capturing.rb in nanoc-4.7.10

- old
+ new

@@ -1,5 +1,7 @@ +# frozen_string_literal: true + require 'helper' class Nanoc::Helpers::CapturingTest < Nanoc::TestCase include Nanoc::Helpers::Capturing @@ -64,19 +66,19 @@ File.open('Rules', 'w') do |io| io.write "compile '*' do ; filter :erb ; end\n" io.write "route '*' do ; item.identifier + 'index.html' ; end\n" end - content = <<EOS -head -<% content_for :box do %> - basic -<% end %> -<% content_for :outerbox do %> - before <%= content_for @item, :box %> after -<% end %> -<%= content_for @item, :outerbox %> -foot + content = <<~EOS + head + <% content_for :box do %> + basic + <% end %> + <% content_for :outerbox do %> + before <%= content_for @item, :box %> after + <% end %> + <%= content_for @item, :outerbox %> + foot EOS item = Nanoc::Int::Item.new('content', {}, '/') view_context = view_context_for(item) @item = Nanoc::ItemWithRepsView.new(item, view_context_for(item))