diff --git a/test/unit/search_person_test.rb b/test/unit/search_person_test.rb deleted file mode 100644 index 0f12abc..0000000 --- a/test/unit/search_person_test.rb +++ /dev/null @@ -1,53 +0,0 @@ -require File.dirname(__FILE__) + '/../../../../test/test_helper' -require File.dirname(__FILE__) + '/../helpers/plugin_test_helper' - - -class SearchPersonTest < ActiveSupport::TestCase - include PluginTestHelper - def setup - create_person("Jose_Augusto", "jose_augusto@email.com", "aaaaaaa", "aaaaaaa", "jose_silva@email.com", "DF", "Gama") - create_person("Maria_cunha", "maria_cunha@email.com", "aaaaaaa", "aaaaaaa", "maria_silva@email.com" , "RJ", "Rio de Janeiro") - create_person("Joao_da_silva_costa_cunha", "joao_da_silva_costa_cunha@email.com", "aaaaaaa", "aaaaaaa", "joao_cunha@email.com" ,"RJ", "Rio de Janeiro") - end - - def teardown - Person.destroy_all - end - - should "Find people with Jo in name" do - people_list = Person.search("Jo") - - assert_equal 2, people_list.count - end - - should "Find people with RJ in state" do - people_list = Person.search("", "RJ") - - assert_equal 2, people_list.count - end - - should "Find people with Gama in city" do - people_list = Person.search("", "", "Gama") - - assert_equal 1, people_list.count - end - - should "Find people with jose in email" do - people_list = Person.search("", "", "", "jose") - - assert_equal 1, people_list.count - end - - should "Find people with Jo in name and j in email" do - people_list = Person.search("Jo", "", "", "j") - - assert_equal 2, people_list.count - end - - should "Find people with Ma in name and email and RJ in state and Rio in city" do - people_list = Person.search("Ma", "RJ", "Rio", "ma") - - assert_equal 1, people_list.count - end - -end diff --git a/views/mpog_software_plugin/_index_buttons.html.erb b/views/mpog_software_plugin/_index_buttons.html.erb deleted file mode 100644 index 899cdf7..0000000 --- a/views/mpog_software_plugin/_index_buttons.html.erb +++ /dev/null @@ -1,5 +0,0 @@ -<% button_bar do %> - <%= button :'text-plain', _('Software list as [CSV]'), :action => 'download.csv' %> - <%= button :'text-html', _('Software list as [XML]'), :action => 'download.xml' %> - <%= button :back, _('Back'), :controller => 'admin_panel' %> -<% end %> \ No newline at end of file diff --git a/views/mpog_software_plugin/_software_list.html.erb b/views/mpog_software_plugin/_software_list.html.erb deleted file mode 100644 index 6bfa0c7..0000000 --- a/views/mpog_software_plugin/_software_list.html.erb +++ /dev/null @@ -1,31 +0,0 @@ -
<%= _('Software') %> | -<%= _('Actions') %> | -
---|---|
<%= link_to_profile s.short_name, s.identifier, :title => s.name %> | -- | - -