Commit 0683cc9e9c7a1f5b2c3b1bc71aeec3e35298c7ff

Authored by Rodrigo Souto
1 parent ee7ca896

context-block-plugin: add box to block to avoid owner nil

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
... ...