diff --git a/features/deactivate_software.feature b/features/deactivate_software.feature index 7777702..9001bb8 100644 --- a/features/deactivate_software.feature +++ b/features/deactivate_software.feature @@ -23,8 +23,8 @@ Feature: deactivate software | operating_system_name | version | | Debian | 1.0 | And the following softwares - | name | acronym | operating_platform | software_language | software_database | operating_system| - | teste | ts | I dont know | Python | PostgreSQL | Debian | + | name | acronym | operating_platform | software_language | software_database | operating_system| objectives | features | + | teste | ts | I dont know | Python | PostgreSQL | Debian | teste | teste | And I go to /plugin/mpog_software/archive_software And I should see "teste" And I follow "Deactivate software" @@ -32,7 +32,7 @@ Feature: deactivate software And I go to /search/communities And I fill in "search-input" with "teste" And I press "Search" - Then I should not see "teste" within "search-profile-item" + Then I should not see "teste" within "#search-results" @selenium Scenario: Activate a deactivated software @@ -46,8 +46,8 @@ Feature: deactivate software | operating_system_name | version | | Debian | 1.0 | And the following softwares - | name | acronym | operating_platform | software_language | software_database | operating_system| - | teste | ts | I dont know | Python | PostgreSQL | Debian | + | name | acronym | operating_platform | software_language | software_database | operating_system| objectives | features | + | teste | ts | I dont know | Python | PostgreSQL | Debian | teste | teste | And I go to /plugin/mpog_software/archive_software And I should see "teste" And I follow "Deactivate software" @@ -55,7 +55,7 @@ Feature: deactivate software And I go to /search/communities And I fill in "search-input" with "teste" And I press "Search" - And I should not see "Teste" within "search-profile-item" + And I should not see "Teste" within "#search-results" And I go to /plugin/mpog_software/archive_software And I should see "teste" And I follow "Activate Software" @@ -63,4 +63,4 @@ Feature: deactivate software And I go to /search/communities And I fill in "search-input" with "teste" And I press "Search" - Then I should see "teste" within "search-profile-item" + Then I should see "teste" within ".search-profile-item" diff --git a/features/step_definitions/mpog_steps.rb b/features/step_definitions/mpog_steps.rb index d0677b6..f6558a7 100644 --- a/features/step_definitions/mpog_steps.rb +++ b/features/step_definitions/mpog_steps.rb @@ -107,7 +107,7 @@ Given /^the following softwares$/ do |table| operating_system_name = OperatingSystemName.where(:name => item[:operating_system]).first operating_system = OperatingSystem.where(:operating_system_name_id => operating_system_name).first - software_info = SoftwareInfo::new(:acronym=>item[:acronym], :operating_platform=>item[:operating_platform]) + software_info = SoftwareInfo::new(:acronym=>item[:acronym], :operating_platform=>item[:operating_platform], :objectives => item[:objectives], :features => item[:features]) software_info.community = community software_info.software_languages << software_language software_info.software_databases << software_database -- libgit2 0.21.2