Commit e46180a83f85e2d158fdd5bd60386fe84f094f89
1 parent
8ac01fe0
Exists in
master
and in
29 other branches
ActionItem866: localization block default title is blank
Showing
2 changed files
with
4 additions
and
4 deletions
Show diff stats
app/models/localization_block.rb
| @@ -8,10 +8,6 @@ class LocalizationBlock < Block | @@ -8,10 +8,6 @@ class LocalizationBlock < Block | ||
| 8 | _('Shows where the profile is on the material world.') | 8 | _('Shows where the profile is on the material world.') |
| 9 | end | 9 | end |
| 10 | 10 | ||
| 11 | - def default_title | ||
| 12 | - _('Localization Map') | ||
| 13 | - end | ||
| 14 | - | ||
| 15 | def content | 11 | def content |
| 16 | profile = self.owner | 12 | profile = self.owner |
| 17 | title = self.title | 13 | title = self.title |
test/unit/localization_block_test.rb
| @@ -29,4 +29,8 @@ class LocalizationBlockTest < Test::Unit::TestCase | @@ -29,4 +29,8 @@ class LocalizationBlockTest < Test::Unit::TestCase | ||
| 29 | assert LocalizationBlock.new.editable? | 29 | assert LocalizationBlock.new.editable? |
| 30 | end | 30 | end |
| 31 | 31 | ||
| 32 | + should 'default title be blank by default' do | ||
| 33 | + assert_equal '', LocalizationBlock.new.title | ||
| 34 | + end | ||
| 35 | + | ||
| 32 | end | 36 | end |