Sha256: dbd055eadd2269f6f2c2381eedf78af165af246230ff14622a1a2e6c2a7990bb

Contents?: true

Size: 503 Bytes

Versions: 8

Compression:

Stored size: 503 Bytes

Contents

require File.join(File.dirname(__FILE__), '/../../test_helper')

class ContentTypeTest < ActiveSupport::TestCase
  def setup
    @c = ContentType.new(:name => "HtmlBlock")
  end

  def test_model_class
    assert_equal HtmlBlock, @c.model_class
  end

  def test_display_name
    assert_equal "Text", @c.display_name
  end

  def test_display_name_plural
    assert_equal "Text", @c.display_name_plural
  end

  def test_content_block_type
    assert_equal "html_blocks", @c.content_block_type
  end
end

Version data entries

8 entries across 8 versions & 6 rubygems

Version Path
SFEley-browsercms-3.0.2 test/unit/models/content_type_test.rb
coredumplings-browsercms-3.0.0 test/unit/models/content_type_test.rb
nate-browsercms-3.0.210 test/unit/models/content_type_test.rb
nate-browsercms-3.0.211 test/unit/models/content_type_test.rb
we5-browsercms-3.0.1.1 test/unit/models/content_type_test.rb
webficient-browsercms-3.0.1 test/unit/models/content_type_test.rb
browsercms-3.0.1 test/unit/models/content_type_test.rb
browsercms-3.0.0 test/unit/models/content_type_test.rb