From 7a7f096a4cf8ffae88fa4d65f01349627a0ec732 Mon Sep 17 00:00:00 2001 From: Alessandro Palmeira + Diego Araujo Date: Tue, 8 Jan 2013 15:37:37 +0000 Subject: [PATCH] [Mezuro] Fixing edit project feature --- features/step_definitions/mezuro_steps.rb | 3 ++- plugins/mezuro/features/project.feature | 10 ++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/features/step_definitions/mezuro_steps.rb b/features/step_definitions/mezuro_steps.rb index 7248b1e..f92c289 100644 --- a/features/step_definitions/mezuro_steps.rb +++ b/features/step_definitions/mezuro_steps.rb @@ -36,7 +36,7 @@ end When /^I have a Mezuro project with the following data$/ do |fields| item = {} fields.rows_hash.each do |name, value| - if(name=="owner") + if(name=="community") item.merge!(:profile=>Profile[value]) else item.merge!(name => value) @@ -45,3 +45,4 @@ When /^I have a Mezuro project with the following data$/ do |fields| result = MezuroPlugin::ProjectContent.new(item) result.save! end + diff --git a/plugins/mezuro/features/project.feature b/plugins/mezuro/features/project.feature index faba7f5..433ed0a 100644 --- a/plugins/mezuro/features/project.feature +++ b/plugins/mezuro/features/project.feature @@ -29,17 +29,19 @@ Feature: Project And I should see "Sample Description" And I should see "Add Repository" - @selenium @current + @selenium Scenario: I edit a Mezuro project When I have a Mezuro project with the following data | name | Sample Project | | description | Sample Description | - | owner | joaosilva | -# Next step should work, but profile for "Sample Description" article is wrong (should be "my-community" but is "joaosilva"). -# Something in the previous step is not right. + | community | mycommunity | And I am on article "Sample Project" And I should be on /mycommunity/sample-project + Then I should see "Sample Project" + And I should see "Sample Description" + And I should see "Add Repository" When I follow "Edit" + # Not complete @selenium Scenario: I delete a Mezuro project that belongs to me -- libgit2 0.21.2