diff --git a/plugins/community_block/lib/community_block.rb b/plugins/community_block/lib/community_block.rb index 235f8b1..bcd36b9 100644 --- a/plugins/community_block/lib/community_block.rb +++ b/plugins/community_block/lib/community_block.rb @@ -7,13 +7,4 @@ class CommunityBlock < Block def help _("Help for Community Description Block.") end - - def content(arg={}) - block = self - - proc do - render :file => 'community_block', :locals => { :block => block } - end - end - end diff --git a/plugins/community_block/test/unit/commmunity_block_test.rb b/plugins/community_block/test/unit/commmunity_block_test.rb deleted file mode 100644 index 3e87396..0000000 --- a/plugins/community_block/test/unit/commmunity_block_test.rb +++ /dev/null @@ -1,11 +0,0 @@ -require_relative '../test_helper' - -class CommunityBlockTest < ActiveSupport::TestCase - - should "display community block" do - block = CommunityBlock.new - self.expects(:render).with(:file => 'community_block', :locals => { :block => block }) - instance_eval(& block.content) - end - -end diff --git a/plugins/community_block/views/blocks/community.html.erb b/plugins/community_block/views/blocks/community.html.erb new file mode 100644 index 0000000..a5a4a1c --- /dev/null +++ b/plugins/community_block/views/blocks/community.html.erb @@ -0,0 +1,52 @@ +