Sha256: ef0f38db31df1d8989441eef9dcdce624e064b84dcc9179ef6ba28d925f5c902
Contents?: true
Size: 649 Bytes
Versions: 40
Compression:
Stored size: 649 Bytes
Contents
require 'test_helper' module Workarea class Content class BlockNameTest < TestCase def test_not_erroring_for_configured_blocks assert_nothing_raised do Workarea.config.content_block_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 Workarea.config.content_block_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
40 entries across 40 versions & 1 rubygems