From 5771e271e9ceeb2fcbf7217ecff7ff0e2340b964 Mon Sep 17 00:00:00 2001 From: Gabriela Navarro Date: Thu, 21 May 2015 11:02:14 -0300 Subject: [PATCH] Fix Suggest Article noosfero step. This article was refactored on c7af3905f and the step wasn't refactored --- features/step_definitions/noosfero_steps.rb | 3 +++ 1 file changed, 3 insertions(+), 0 deletions(-) diff --git a/features/step_definitions/noosfero_steps.rb b/features/step_definitions/noosfero_steps.rb index af6f7ba..e924c5c 100644 --- a/features/step_definitions/noosfero_steps.rb +++ b/features/step_definitions/noosfero_steps.rb @@ -503,6 +503,9 @@ end Given /^someone suggested the following article to be published$/ do |table| table.hashes.map{|item| item.dup}.each do |item| target = Community[item.delete('target')] + item[:article] = {} + item[:article][:name] = item.delete('article_name') + item[:article][:body] = item.delete('article_body') task = SuggestArticle.create!(:target => target, :data => item) end end -- libgit2 0.21.2