main_block_test.rb 435 Bytes
require File.dirname(__FILE__) + '/../test_helper'

class MainBlockTest < Test::Unit::TestCase

  should 'describe itself' do
    assert_kind_of String, MainBlock.description
    assert_not_equal Block.description, MainBlock.description
  end

  should 'have no content' do
    ok("MainBlock must not have a content") { MainBlock.new.content.blank? }
  end

  should 'not be editable' do
    assert !MainBlock.new.editable?
  end

end