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

Version Path
workarea-core-3.5.27 test/models/workarea/content/block_name_test.rb
workarea-core-3.5.26 test/models/workarea/content/block_name_test.rb
workarea-core-3.5.25 test/models/workarea/content/block_name_test.rb
workarea-core-3.5.23 test/models/workarea/content/block_name_test.rb
workarea-core-3.5.22 test/models/workarea/content/block_name_test.rb
workarea-core-3.5.21 test/models/workarea/content/block_name_test.rb
workarea-core-3.5.20 test/models/workarea/content/block_name_test.rb
workarea-core-3.5.19 test/models/workarea/content/block_name_test.rb
workarea-core-3.5.18 test/models/workarea/content/block_name_test.rb
workarea-core-3.5.17 test/models/workarea/content/block_name_test.rb
workarea-core-3.5.16 test/models/workarea/content/block_name_test.rb
workarea-core-3.5.15 test/models/workarea/content/block_name_test.rb
workarea-core-3.5.14 test/models/workarea/content/block_name_test.rb
workarea-core-3.5.13 test/models/workarea/content/block_name_test.rb
workarea-core-3.5.12 test/models/workarea/content/block_name_test.rb
workarea-core-3.5.11 test/models/workarea/content/block_name_test.rb
workarea-core-3.5.10 test/models/workarea/content/block_name_test.rb
workarea-core-3.5.9 test/models/workarea/content/block_name_test.rb
workarea-core-3.5.8 test/models/workarea/content/block_name_test.rb
workarea-core-3.5.7 test/models/workarea/content/block_name_test.rb