Sha256: c66a445cf7c5d54fa9201012925347b00df5cab720ce2cdabcaa7b866d60f03f
Contents?: true
Size: 647 Bytes
Versions: 22
Compression:
Stored size: 647 Bytes
Contents
require 'test_helper' module Workarea class Content class BlockNameTest < TestCase def test_not_erroring_for_configured_blocks assert_nothing_raised do Configuration::ContentBlocks.types.each do |type| block = Block.new(type: type, data: type.defaults) BlockName.new(block).to_s end end end def test_name_is_human_readable Configuration::ContentBlocks.types.each do |type| block = Block.new(type: type, data: type.defaults) name = BlockName.new(block).to_s refute_match(/\[/, name) end end end end end
Version data entries
22 entries across 22 versions & 1 rubygems