require 'helper' class TestSlimRubyErrors < TestSlim def test_multline_attribute source = %q{
'test.slim' end def test_broken_output_line source = %q{
'test.slim' else assert_ruby_error NameError, "test.slim:4", source, :file => 'test.slim' end end def test_broken_output_line2 source = %q{
Text line 1
Text line 2
= unknown_ruby_method
}
assert_ruby_error NameError,"(__TEMPLATE__):4", source
end
def test_text_block2
source = %q{
|
Text line 1
Text line 2
= unknown_ruby_method
}
assert_ruby_error NameError,"(__TEMPLATE__):5", source
end
def test_comment
source = %q{
/ Comment line 1
Comment line 2
= unknown_ruby_method
}
assert_ruby_error NameError,"(__TEMPLATE__):4", source
end
def test_embedded_ruby1
source = %q{