Commit 2ba6f013e4dd298cea3d8227f64b8608b6adabbc

Authored by Paulo Meireles
Committed by Paulo Meireles
1 parent 856fb1b9

[Mezuro] removed Mezuro content types, just panel control buttons

plugins/mezuro/lib/mezuro_plugin.rb
@@ -14,14 +14,6 @@ class MezuroPlugin < Noosfero::Plugin @@ -14,14 +14,6 @@ class MezuroPlugin < Noosfero::Plugin
14 _("A metric analizer plugin.") 14 _("A metric analizer plugin.")
15 end 15 end
16 16
17 - def content_types  
18 - if context.profile.is_a?(Community)  
19 - MezuroPlugin::ProjectContent  
20 - else  
21 - MezuroPlugin::ConfigurationContent  
22 - end  
23 - end  
24 -  
25 def control_panel_buttons 17 def control_panel_buttons
26 if context.profile.is_a?(Community) 18 if context.profile.is_a?(Community)
27 {:title => _('Mezuro Project'), :url => {:controller => 'cms', :action => 'new', :profile => context.profile.identifier, :type => 'MezuroPlugin::ProjectContent'}, :icon => 'mezuro' } 19 {:title => _('Mezuro Project'), :url => {:controller => 'cms', :action => 'new', :profile => context.profile.identifier, :type => 'MezuroPlugin::ProjectContent'}, :icon => 'mezuro' }
plugins/mezuro/test/unit/mezuro_plugin/configuration_content_test.rb
@@ -14,7 +14,7 @@ class ConfigurationContentTest < ActiveSupport::TestCase @@ -14,7 +14,7 @@ class ConfigurationContentTest < ActiveSupport::TestCase
14 end 14 end
15 15
16 should 'provide proper short description' do 16 should 'provide proper short description' do
17 - assert_equal 'Kalibro configuration', MezuroPlugin::ConfigurationContent.short_description 17 + assert_equal 'Mezuro configuration', MezuroPlugin::ConfigurationContent.short_description
18 end 18 end
19 19
20 should 'provide proper description' do 20 should 'provide proper description' do
plugins/mezuro/test/unit/mezuro_plugin/project_content_test.rb
@@ -16,7 +16,7 @@ class ProjectContentTest < ActiveSupport::TestCase @@ -16,7 +16,7 @@ class ProjectContentTest < ActiveSupport::TestCase
16 end 16 end
17 17
18 should 'provide proper short description' do 18 should 'provide proper short description' do
19 - assert_equal 'Kalibro project', MezuroPlugin::ProjectContent.short_description 19 + assert_equal 'Mezuro project', MezuroPlugin::ProjectContent.short_description
20 end 20 end
21 21
22 should 'provide proper description' do 22 should 'provide proper description' do
plugins/mezuro/test/unit/mezuro_plugin_test.rb
@@ -18,14 +18,6 @@ class MezuroPluginTest < ActiveSupport::TestCase @@ -18,14 +18,6 @@ class MezuroPluginTest < ActiveSupport::TestCase
18 assert_equal _('A metric analizer plugin.'), MezuroPlugin.plugin_description 18 assert_equal _('A metric analizer plugin.'), MezuroPlugin.plugin_description
19 end 19 end
20 20
21 - should 'have configuration content type' do  
22 - assert_includes @plugin.content_types, MezuroPlugin::ConfigurationContent  
23 - end  
24 -  
25 - should 'have project content type' do  
26 - assert_includes @plugin.content_types, MezuroPlugin::ProjectContent  
27 - end  
28 -  
29 should 'have stylesheet' do 21 should 'have stylesheet' do
30 assert @plugin.stylesheet? 22 assert @plugin.stylesheet?
31 end 23 end