Commit 7b24dc082212a6801699e0000e26562dc6ebb3c1
1 parent
b4b7ad92
Exists in
ratings_minor_fixes
and in
4 other branches
fix html safe erro in raw html block
Showing
2 changed files
with
8 additions
and
1 deletions
Show diff stats
app/views/blocks/raw_html.html.erb
test/unit/raw_html_block_test.rb
@@ -40,4 +40,11 @@ class RawHTMLBlockTest < ActiveSupport::TestCase | @@ -40,4 +40,11 @@ class RawHTMLBlockTest < ActiveSupport::TestCase | ||
40 | assert block.editable?(user) | 40 | assert block.editable?(user) |
41 | end | 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 | end | 50 | end |