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

Version Path
workarea-core-3.4.45 test/models/workarea/content/block_name_test.rb
workarea-core-3.4.44 test/models/workarea/content/block_name_test.rb
workarea-core-3.4.43 test/models/workarea/content/block_name_test.rb
workarea-core-3.4.42 test/models/workarea/content/block_name_test.rb
workarea-core-3.4.41 test/models/workarea/content/block_name_test.rb
workarea-core-3.4.40 test/models/workarea/content/block_name_test.rb
workarea-core-3.4.39 test/models/workarea/content/block_name_test.rb
workarea-core-3.4.38 test/models/workarea/content/block_name_test.rb
workarea-core-3.4.37 test/models/workarea/content/block_name_test.rb
workarea-core-3.4.36 test/models/workarea/content/block_name_test.rb
workarea-core-3.4.35 test/models/workarea/content/block_name_test.rb
workarea-core-3.4.34 test/models/workarea/content/block_name_test.rb
workarea-core-3.4.33 test/models/workarea/content/block_name_test.rb
workarea-core-3.4.32 test/models/workarea/content/block_name_test.rb
workarea-core-3.4.31 test/models/workarea/content/block_name_test.rb
workarea-core-3.4.30 test/models/workarea/content/block_name_test.rb
workarea-core-3.4.29 test/models/workarea/content/block_name_test.rb
workarea-core-3.4.28 test/models/workarea/content/block_name_test.rb
workarea-core-3.4.27 test/models/workarea/content/block_name_test.rb
workarea-core-3.5.4 test/models/workarea/content/block_name_test.rb