test/test_text_interpolation.rb in skim-0.8.6 vs test/test_text_interpolation.rb in skim-0.9.0
- old
+ new
@@ -38,13 +38,14 @@
end
def test_escape_interpolation
source = %q{
p \\#{@hello_world()}
+p text1 \\#{@hello_world()} text2
}
- assert_html '<p>#{@hello_world()}</p>', source
+ assert_html '<p>#{@hello_world()}</p><p>text1 #{@hello_world()} text2</p>', source
end
def test_complex_interpolation
source = %q{
p Message: #{@message('hello', "user #{@output_number()}")}
@@ -56,11 +57,11 @@
def test_interpolation_with_escaping
source = %q{
| #{@evil_method()}
}
- assert_html '<script>do_something_evil();</script>', source
+ assert_html '<script>do_something_evil();</script>', source
end
def test_interpolation_without_escaping
source = %q{
| #{{@evil_method()}}
@@ -71,8 +72,8 @@
def test_interpolation_with_escaping_and_delimiter
source = %q{
| #{(@evil_method())}
}
- assert_html '<script>do_something_evil();</script>', source
+ assert_html '<script>do_something_evil();</script>', source
end
end