Commit 1c69e2e795081d87ad20bcb406cc24afd816a709

Authored by Leandro Santos
2 parents 3068e477 7b24dc08
Exists in staging and in 1 other branch production

Merge branch 'master' into staging

app/views/blocks/raw_html.html.erb
1 1 <%= block_title(block.title, block.subtitle) %>
2 2  
3   -<%= block.html.html_safe %>
  3 +<%= (block.html || '').html_safe %>
... ...
test/unit/raw_html_block_test.rb
... ... @@ -40,4 +40,11 @@ class RawHTMLBlockTest &lt; ActiveSupport::TestCase
40 40 assert block.editable?(user)
41 41 end
42 42  
  43 + should 'not raise if there is no html defined' do
  44 + block = RawHTMLBlock.new(:html => nil)
  45 + assert_nothing_raised do
  46 + render_block_content(block)
  47 + end
  48 + end
  49 +
43 50 end
... ...