Sha256: 21e7148d2396b8bd85a1c609d33f409ad563de08aad9f7bbd6ad0c7ed4a1708e
Contents?: true
Size: 620 Bytes
Versions: 3
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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
comfortable_mexican_sofa-2.0.2 | test/lib/content/block_test.rb |
comfortable_mexican_sofa-2.0.1 | test/lib/content/block_test.rb |
comfortable_mexican_sofa-2.0.0 | test/lib/content/block_test.rb |