Commit 0683cc9e9c7a1f5b2c3b1bc71aeec3e35298c7ff
1 parent
ee7ca896
Exists in
master
and in
28 other branches
context-block-plugin: add box to block to avoid owner nil
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
plugins/context_content/test/functional/context_content_plugin_profile_controller_test.rb
... | ... | @@ -9,6 +9,8 @@ class ContextContentPluginProfileControllerTest < ActionController::TestCase |
9 | 9 | @block = ContextContentPlugin::ContextContentBlock.new |
10 | 10 | @block.types = ['TinyMceArticle'] |
11 | 11 | @block.limit = 1 |
12 | + owner = create_user('block-owner').person | |
13 | + @block.box = owner.boxes.last | |
12 | 14 | @block.save! |
13 | 15 | @page = fast_create(Folder, :profile_id => @profile.id) |
14 | 16 | end | ... | ... |