Commit 7a7f096a4cf8ffae88fa4d65f01349627a0ec732

Authored by Alessandro Palmeira + Diego Araujo
Committed by Paulo Meireles
1 parent ae6b3010

[Mezuro] Fixing edit project feature

features/step_definitions/mezuro_steps.rb
... ... @@ -36,7 +36,7 @@ end
36 36 When /^I have a Mezuro project with the following data$/ do |fields|
37 37 item = {}
38 38 fields.rows_hash.each do |name, value|
39   - if(name=="owner")
  39 + if(name=="community")
40 40 item.merge!(:profile=>Profile[value])
41 41 else
42 42 item.merge!(name => value)
... ... @@ -45,3 +45,4 @@ When /^I have a Mezuro project with the following data$/ do |fields|
45 45 result = MezuroPlugin::ProjectContent.new(item)
46 46 result.save!
47 47 end
  48 +
... ...
plugins/mezuro/features/project.feature
... ... @@ -29,17 +29,19 @@ Feature: Project
29 29 And I should see "Sample Description"
30 30 And I should see "Add Repository"
31 31  
32   - @selenium @current
  32 + @selenium
33 33 Scenario: I edit a Mezuro project
34 34 When I have a Mezuro project with the following data
35 35 | name | Sample Project |
36 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 38 And I am on article "Sample Project"
41 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 43 When I follow "Edit"
  44 + # Not complete
43 45  
44 46 @selenium
45 47 Scenario: I delete a Mezuro project that belongs to me
... ...