test/slim/test_embedded_engines.rb in slim-0.9.2 vs test/slim/test_embedded_engines.rb in slim-0.9.3
- old
+ new
@@ -8,16 +8,18 @@
def test_render_with_haml
source = %q{
p
- text = 'haml'
haml:
+ - passed_from_haml = 'from haml'
%b Hello from #{text.upcase}!
Second Line!
- if true
= true
+ = passed_from_haml
}
- assert_html "<p><b>Hello from HAML!</b>\nSecond Line!\ntrue\n</p>", source
+ assert_html "<p><b>Hello from HAML!</b>\nSecond Line!\ntrue\nfrom haml</p>", source
end
def test_render_with_erb
source = %q{
p