Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
* limit rails version to be < 6.1
  • Loading branch information
webdev778 committed May 31, 2021
1 parent b7c1d66 commit 3fea87e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion comfortable_mexican_sofa.gemspec
Expand Up @@ -26,7 +26,7 @@ Gem::Specification.new do |s|
s.add_dependency "kramdown", ">= 1.0.0"
s.add_dependency "mimemagic", ">= 0.3.2"
s.add_dependency "mini_magick", ">= 4.8.0"
s.add_dependency "rails", ">= 5.2.0"
s.add_dependency "rails", ">= 5.2.0", "< 6.1"
s.add_dependency "rails-i18n", ">= 5.0.0"
s.add_dependency "sassc-rails", ">= 2.0.0"
end
9 changes: 9 additions & 0 deletions test/lib/content/renderer_test.rb
Expand Up @@ -276,4 +276,13 @@ def test_render_stack_overflow
end
end

def test_render_with_more_than_hundred_tags
test_string =
Array.new(ComfortableMexicanSofa::Content::Renderer::MAX_DEPTH) { "{{cms:text content}}" }.join(" ")
out = render_string(test_string)
expected =
Array.new(ComfortableMexicanSofa::Content::Renderer::MAX_DEPTH) { "content" }.join(" ")
assert_equal expected, out
end

end

0 comments on commit 3fea87e

Please sign in to comment.