Commit a95f5e27099d87dec71172c6acf161b0dbd0fe21
Committed by
David Silva
1 parent
3d42567f
Exists in
master
and in
5 other branches
Remove software categories from tests
Signed-off-by: Gabriela Navarro <navarro1703@gmail.com>
Showing
1 changed file
with
2 additions
and
6 deletions
Show diff stats
controllers/mpog_software_plugin_myprofile_controller.rb
| ... | ... | @@ -60,7 +60,7 @@ class MpogSoftwarePluginMyprofileController < MyProfileController |
| 60 | 60 | |
| 61 | 61 | def community_must_be_approved |
| 62 | 62 | end |
| 63 | - | |
| 63 | + | |
| 64 | 64 | private |
| 65 | 65 | |
| 66 | 66 | def add_software_erros |
| ... | ... | @@ -120,16 +120,14 @@ class MpogSoftwarePluginMyprofileController < MyProfileController |
| 120 | 120 | @list_libraries = LibraryHelper.list_libraries(params[:library]) |
| 121 | 121 | @list_languages = SoftwareLanguageHelper.list_language(params[:language]) |
| 122 | 122 | @list_databases = DatabaseHelper.list_database(params[:database]) |
| 123 | - @software_categories = SoftwareCategories::new params[:software_categories] | |
| 124 | 123 | @list_operating_systems = OperatingSystemHelper.list_operating_system(params[:operating_system]) |
| 125 | - @software_info.software_categories = @software_categories unless params[:software_categories].nil? | |
| 126 | 124 | end |
| 127 | 125 | |
| 128 | 126 | def send_software_to_moderation |
| 129 | 127 | @software_info = SoftwareInfo.create_after_moderation(user, |
| 130 | 128 | params[:software_info].merge({ |
| 131 | 129 | :environment => environment, |
| 132 | - :name => params[:community][:name], | |
| 130 | + :name => params[:community][:name], | |
| 133 | 131 | :license_info => @license_info })) |
| 134 | 132 | unless params[:q].nil? |
| 135 | 133 | admins = params[:q].split(/,/).map{ |n| environment.people.find n.to_i } |
| ... | ... | @@ -156,8 +154,6 @@ class MpogSoftwarePluginMyprofileController < MyProfileController |
| 156 | 154 | @list_databases = @software_info.software_databases |
| 157 | 155 | @list_languages = @software_info.software_languages |
| 158 | 156 | @list_operating_systems = @software_info.operating_systems |
| 159 | - @software_categories = @software_info.software_categories | |
| 160 | - @software_categories = SoftwareCategories.new if @software_categories.blank? | |
| 161 | 157 | @disabled_public_software_field = disabled_public_software_field |
| 162 | 158 | end |
| 163 | 159 | end | ... | ... |