Commit 71f3461a68bed79fc8ce7a5a932c22e4ed01b587
1 parent
52fb4951
Exists in
master
and in
5 other branches
Fix cucumber step to make a software
Signed-off-by: Gabriela Navarro <navarro1703@gmail.com> Signed-off-by: Gustavo Jaruga <darksshades@gmail.com>
Showing
2 changed files
with
8 additions
and
8 deletions
Show diff stats
features/deactivate_software.feature
@@ -23,8 +23,8 @@ Feature: deactivate software | @@ -23,8 +23,8 @@ Feature: deactivate software | ||
23 | | operating_system_name | version | | 23 | | operating_system_name | version | |
24 | | Debian | 1.0 | | 24 | | Debian | 1.0 | |
25 | And the following softwares | 25 | And the following softwares |
26 | - | name | acronym | operating_platform | software_language | software_database | operating_system| | ||
27 | - | teste | ts | I dont know | Python | PostgreSQL | Debian | | 26 | + | name | acronym | operating_platform | software_language | software_database | operating_system| objectives | features | |
27 | + | teste | ts | I dont know | Python | PostgreSQL | Debian | teste | teste | | ||
28 | And I go to /plugin/mpog_software/archive_software | 28 | And I go to /plugin/mpog_software/archive_software |
29 | And I should see "teste" | 29 | And I should see "teste" |
30 | And I follow "Deactivate software" | 30 | And I follow "Deactivate software" |
@@ -32,7 +32,7 @@ Feature: deactivate software | @@ -32,7 +32,7 @@ Feature: deactivate software | ||
32 | And I go to /search/communities | 32 | And I go to /search/communities |
33 | And I fill in "search-input" with "teste" | 33 | And I fill in "search-input" with "teste" |
34 | And I press "Search" | 34 | And I press "Search" |
35 | - Then I should not see "teste" within "search-profile-item" | 35 | + Then I should not see "teste" within "#search-results" |
36 | 36 | ||
37 | @selenium | 37 | @selenium |
38 | Scenario: Activate a deactivated software | 38 | Scenario: Activate a deactivated software |
@@ -46,8 +46,8 @@ Feature: deactivate software | @@ -46,8 +46,8 @@ Feature: deactivate software | ||
46 | | operating_system_name | version | | 46 | | operating_system_name | version | |
47 | | Debian | 1.0 | | 47 | | Debian | 1.0 | |
48 | And the following softwares | 48 | And the following softwares |
49 | - | name | acronym | operating_platform | software_language | software_database | operating_system| | ||
50 | - | teste | ts | I dont know | Python | PostgreSQL | Debian | | 49 | + | name | acronym | operating_platform | software_language | software_database | operating_system| objectives | features | |
50 | + | teste | ts | I dont know | Python | PostgreSQL | Debian | teste | teste | | ||
51 | And I go to /plugin/mpog_software/archive_software | 51 | And I go to /plugin/mpog_software/archive_software |
52 | And I should see "teste" | 52 | And I should see "teste" |
53 | And I follow "Deactivate software" | 53 | And I follow "Deactivate software" |
@@ -55,7 +55,7 @@ Feature: deactivate software | @@ -55,7 +55,7 @@ Feature: deactivate software | ||
55 | And I go to /search/communities | 55 | And I go to /search/communities |
56 | And I fill in "search-input" with "teste" | 56 | And I fill in "search-input" with "teste" |
57 | And I press "Search" | 57 | And I press "Search" |
58 | - And I should not see "Teste" within "search-profile-item" | 58 | + And I should not see "Teste" within "#search-results" |
59 | And I go to /plugin/mpog_software/archive_software | 59 | And I go to /plugin/mpog_software/archive_software |
60 | And I should see "teste" | 60 | And I should see "teste" |
61 | And I follow "Activate Software" | 61 | And I follow "Activate Software" |
@@ -63,4 +63,4 @@ Feature: deactivate software | @@ -63,4 +63,4 @@ Feature: deactivate software | ||
63 | And I go to /search/communities | 63 | And I go to /search/communities |
64 | And I fill in "search-input" with "teste" | 64 | And I fill in "search-input" with "teste" |
65 | And I press "Search" | 65 | And I press "Search" |
66 | - Then I should see "teste" within "search-profile-item" | 66 | + Then I should see "teste" within ".search-profile-item" |
features/step_definitions/mpog_steps.rb
@@ -107,7 +107,7 @@ Given /^the following softwares$/ do |table| | @@ -107,7 +107,7 @@ Given /^the following softwares$/ do |table| | ||
107 | operating_system_name = OperatingSystemName.where(:name => item[:operating_system]).first | 107 | operating_system_name = OperatingSystemName.where(:name => item[:operating_system]).first |
108 | operating_system = OperatingSystem.where(:operating_system_name_id => operating_system_name).first | 108 | operating_system = OperatingSystem.where(:operating_system_name_id => operating_system_name).first |
109 | 109 | ||
110 | - software_info = SoftwareInfo::new(:acronym=>item[:acronym], :operating_platform=>item[:operating_platform]) | 110 | + software_info = SoftwareInfo::new(:acronym=>item[:acronym], :operating_platform=>item[:operating_platform], :objectives => item[:objectives], :features => item[:features]) |
111 | software_info.community = community | 111 | software_info.community = community |
112 | software_info.software_languages << software_language | 112 | software_info.software_languages << software_language |
113 | software_info.software_databases << software_database | 113 | software_info.software_databases << software_database |