Commit 61e8866b9a8ebeb8d6b19dcdfec0082161a073db

Authored by AntonioTerceiro
1 parent f4b01954

ActionItem188: MainBlock#content should not be called never, but anyway it can't…

… call something that does not exist


git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1478 3f533792-8f58-4932-b0fe-aaf55b0a4547
app/models/main_block.rb
... ... @@ -5,7 +5,7 @@ class MainBlock < Block
5 5 end
6 6  
7 7 def content
8   - main_content
  8 + nil
9 9 end
10 10  
11 11 def main?
... ...
test/unit/main_block_test.rb
... ... @@ -7,4 +7,8 @@ class MainBlockTest < Test::Unit::TestCase
7 7 assert_not_equal Block.description, MainBlock.description
8 8 end
9 9  
  10 + should 'have no content' do
  11 + ok("MainBlock must not have a content") { MainBlock.new.content.blank? }
  12 + end
  13 +
10 14 end
... ...