test/helpers/test_rendering.rb in nanoc3-3.2.0b2 vs test/helpers/test_rendering.rb in nanoc3-3.2.0b3
- old
+ new
@@ -75,14 +75,15 @@
File.open('layouts/foo.xyz', 'w') do |io|
io.write '[partial-before]<%= yield %>[partial-after]'
end
_erbout = '[erbout-before]'
- render '/foo/' do
+ result = render '/foo/' do
_erbout << "This is some extra content"
end
assert_equal('[erbout-before][partial-before]This is some extra content[partial-after]', _erbout)
+ assert_equal '', result
end
end
end