Sha256: d273e4c2dad4305a0726d3b23939306dffd85e744e731a59bc539eb52858d5c0
Contents?: true
Size: 620 Bytes
Versions: 6
Compression:
Stored size: 620 Bytes
Contents
require_relative "../../test_helper" class ContentBlockTest < ActiveSupport::TestCase class TestBlockTag < ComfortableMexicanSofa::Content::Block # ... end setup do ComfortableMexicanSofa::Content::Renderer.register_tag(:test_block, TestBlockTag) end teardown do ComfortableMexicanSofa::Content::Renderer.tags.delete("test_block") end # -- Tests ------------------------------------------------------------------- def test_block_tag_nodes block = TestBlockTag.new(nil, "") assert_equal [], block.nodes block.nodes << "text" assert_equal ["text"], block.nodes end end
Version data entries
6 entries across 6 versions & 1 rubygems