diff --git a/test/integration/standard_filter_test.rb b/test/integration/standard_filter_test.rb index 6f66bc5..ec2f36c 100644 --- a/test/integration/standard_filter_test.rb +++ b/test/integration/standard_filter_test.rb @@ -171,7 +171,7 @@ class StandardFiltersTest < Minitest::Test assert_equal('one two three', @filters.truncatewords('one two three')) assert_equal( 'Two small (13” x 5.5” x 10” high) baskets fit inside one large basket (13”...', - @filters.truncatewords('Two small (13” x 5.5” x 10” high) baskets fit inside one large basket (13” x 16” x 10.5” high) with cover.', 15) + @filters.truncatewords('Two small (13” x 5.5” x 10” high) baskets fit inside one large basket (13” x 16” x 10.5” high) with cover.', 15) ) assert_equal("测试测试测试测试", @filters.truncatewords('测试测试测试测试', 5)) assert_equal('one two1', @filters.truncatewords("one two three", 2, 1)) diff --git a/test/integration/tags/include_tag_test.rb b/test/integration/tags/include_tag_test.rb index 6a2bbfc..73f4875 100644 --- a/test/integration/tags/include_tag_test.rb +++ b/test/integration/tags/include_tag_test.rb @@ -96,12 +96,12 @@ class IncludeTagTest < Minitest::Test def test_include_tag_with_alias assert_template_result("Product: Draft 151cm ", - "{% include 'product_alias' with products[0] as product %}", "products" => [{ 'title' => 'Draft 151cm' }, { 'title' => 'Element 155cm' }]) + "{% include 'product_alias' with products[0] as product %}", "products" => [{ 'title' => 'Draft 151cm' }, { 'title' => 'Element 155cm' }]) end def test_include_tag_for_alias assert_template_result("Product: Draft 151cm Product: Element 155cm ", - "{% include 'product_alias' for products as product %}", "products" => [{ 'title' => 'Draft 151cm' }, { 'title' => 'Element 155cm' }]) + "{% include 'product_alias' for products as product %}", "products" => [{ 'title' => 'Draft 151cm' }, { 'title' => 'Element 155cm' }]) end def test_include_tag_with_default_name diff --git a/test/integration/tags/render_tag_test.rb b/test/integration/tags/render_tag_test.rb index d16aaf1..1af22b9 100644 --- a/test/integration/tags/render_tag_test.rb +++ b/test/integration/tags/render_tag_test.rb @@ -151,7 +151,7 @@ class RenderTagTest < Minitest::Test ) assert_template_result("Product: Draft 151cm ", - "{% render 'product' with products[0] %}", "products" => [{ 'title' => 'Draft 151cm' }, { 'title' => 'Element 155cm' }]) + "{% render 'product' with products[0] %}", "products" => [{ 'title' => 'Draft 151cm' }, { 'title' => 'Element 155cm' }]) end def test_render_tag_with_alias @@ -161,7 +161,7 @@ class RenderTagTest < Minitest::Test ) assert_template_result("Product: Draft 151cm ", - "{% render 'product_alias' with products[0] as product %}", "products" => [{ 'title' => 'Draft 151cm' }, { 'title' => 'Element 155cm' }]) + "{% render 'product_alias' with products[0] as product %}", "products" => [{ 'title' => 'Draft 151cm' }, { 'title' => 'Element 155cm' }]) end def test_render_tag_for_alias @@ -171,7 +171,7 @@ class RenderTagTest < Minitest::Test ) assert_template_result("Product: Draft 151cm Product: Element 155cm ", - "{% render 'product_alias' for products as product %}", "products" => [{ 'title' => 'Draft 151cm' }, { 'title' => 'Element 155cm' }]) + "{% render 'product_alias' for products as product %}", "products" => [{ 'title' => 'Draft 151cm' }, { 'title' => 'Element 155cm' }]) end def test_render_tag_for @@ -181,7 +181,7 @@ class RenderTagTest < Minitest::Test ) assert_template_result("Product: Draft 151cm Product: Element 155cm ", - "{% render 'product' for products %}", "products" => [{ 'title' => 'Draft 151cm' }, { 'title' => 'Element 155cm' }]) + "{% render 'product' for products %}", "products" => [{ 'title' => 'Draft 151cm' }, { 'title' => 'Element 155cm' }]) end def test_render_tag_forloop @@ -190,7 +190,7 @@ class RenderTagTest < Minitest::Test ) assert_template_result("Product: Draft 151cm first index:1 Product: Element 155cm last index:2 ", - "{% render 'product' for products %}", "products" => [{ 'title' => 'Draft 151cm' }, { 'title' => 'Element 155cm' }]) + "{% render 'product' for products %}", "products" => [{ 'title' => 'Draft 151cm' }, { 'title' => 'Element 155cm' }]) end def test_render_tag_for_drop @@ -199,7 +199,7 @@ class RenderTagTest < Minitest::Test ) assert_template_result("123", - "{% render 'loop' for loop as value %}", "loop" => TestEnumerable.new) + "{% render 'loop' for loop as value %}", "loop" => TestEnumerable.new) end def test_render_tag_with_drop @@ -208,6 +208,6 @@ class RenderTagTest < Minitest::Test ) assert_template_result("TestEnumerable", - "{% render 'loop' with loop as value %}", "loop" => TestEnumerable.new) + "{% render 'loop' with loop as value %}", "loop" => TestEnumerable.new) end end