Commit 1c69e2e795081d87ad20bcb406cc24afd816a709
Exists in
staging
and in
1 other branch
Merge branch 'master' into staging
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 | 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 | ... | ... |