Commit 7a7f096a4cf8ffae88fa4d65f01349627a0ec732
Committed by
Paulo Meireles
1 parent
ae6b3010
Exists in
master
and in
22 other branches
[Mezuro] Fixing edit project feature
Showing
2 changed files
with
8 additions
and
5 deletions
Show diff stats
features/step_definitions/mezuro_steps.rb
| @@ -36,7 +36,7 @@ end | @@ -36,7 +36,7 @@ end | ||
| 36 | When /^I have a Mezuro project with the following data$/ do |fields| | 36 | When /^I have a Mezuro project with the following data$/ do |fields| |
| 37 | item = {} | 37 | item = {} |
| 38 | fields.rows_hash.each do |name, value| | 38 | fields.rows_hash.each do |name, value| |
| 39 | - if(name=="owner") | 39 | + if(name=="community") |
| 40 | item.merge!(:profile=>Profile[value]) | 40 | item.merge!(:profile=>Profile[value]) |
| 41 | else | 41 | else |
| 42 | item.merge!(name => value) | 42 | item.merge!(name => value) |
| @@ -45,3 +45,4 @@ When /^I have a Mezuro project with the following data$/ do |fields| | @@ -45,3 +45,4 @@ When /^I have a Mezuro project with the following data$/ do |fields| | ||
| 45 | result = MezuroPlugin::ProjectContent.new(item) | 45 | result = MezuroPlugin::ProjectContent.new(item) |
| 46 | result.save! | 46 | result.save! |
| 47 | end | 47 | end |
| 48 | + |
plugins/mezuro/features/project.feature
| @@ -29,17 +29,19 @@ Feature: Project | @@ -29,17 +29,19 @@ Feature: Project | ||
| 29 | And I should see "Sample Description" | 29 | And I should see "Sample Description" |
| 30 | And I should see "Add Repository" | 30 | And I should see "Add Repository" |
| 31 | 31 | ||
| 32 | - @selenium @current | 32 | + @selenium |
| 33 | Scenario: I edit a Mezuro project | 33 | Scenario: I edit a Mezuro project |
| 34 | When I have a Mezuro project with the following data | 34 | When I have a Mezuro project with the following data |
| 35 | | name | Sample Project | | 35 | | name | Sample Project | |
| 36 | | description | Sample Description | | 36 | | description | Sample Description | |
| 37 | - | owner | joaosilva | | ||
| 38 | -# Next step should work, but profile for "Sample Description" article is wrong (should be "my-community" but is "joaosilva"). | ||
| 39 | -# Something in the previous step is not right. | 37 | + | community | mycommunity | |
| 40 | And I am on article "Sample Project" | 38 | And I am on article "Sample Project" |
| 41 | And I should be on /mycommunity/sample-project | 39 | And I should be on /mycommunity/sample-project |
| 40 | + Then I should see "Sample Project" | ||
| 41 | + And I should see "Sample Description" | ||
| 42 | + And I should see "Add Repository" | ||
| 42 | When I follow "Edit" | 43 | When I follow "Edit" |
| 44 | + # Not complete | ||
| 43 | 45 | ||
| 44 | @selenium | 46 | @selenium |
| 45 | Scenario: I delete a Mezuro project that belongs to me | 47 | Scenario: I delete a Mezuro project that belongs to me |