From 0683cc9e9c7a1f5b2c3b1bc71aeec3e35298c7ff Mon Sep 17 00:00:00 2001 From: Rodrigo Souto Date: Mon, 7 Apr 2014 15:02:39 +0000 Subject: [PATCH] context-block-plugin: add box to block to avoid owner nil --- plugins/context_content/test/functional/context_content_plugin_profile_controller_test.rb | 2 ++ 1 file changed, 2 insertions(+), 0 deletions(-) diff --git a/plugins/context_content/test/functional/context_content_plugin_profile_controller_test.rb b/plugins/context_content/test/functional/context_content_plugin_profile_controller_test.rb index 28c98fc..90b2e1c 100644 --- a/plugins/context_content/test/functional/context_content_plugin_profile_controller_test.rb +++ b/plugins/context_content/test/functional/context_content_plugin_profile_controller_test.rb @@ -9,6 +9,8 @@ class ContextContentPluginProfileControllerTest < ActionController::TestCase @block = ContextContentPlugin::ContextContentBlock.new @block.types = ['TinyMceArticle'] @block.limit = 1 + owner = create_user('block-owner').person + @block.box = owner.boxes.last @block.save! @page = fast_create(Folder, :profile_id => @profile.id) end -- libgit2 0.21.2