Commit 5771e271e9ceeb2fcbf7217ecff7ff0e2340b964

Authored by Gabriela Navarro
1 parent aefaa015

Fix Suggest Article noosfero step. This article was refactored on c7af3905f and …

…the step wasn't refactored

Signed-off-by: Arthur Del Esposte <arthurmde@gmail.com>
Signed-off-by: Gabriela Navarro <navarro1703@gmail.com>
Showing 1 changed file with 3 additions and 0 deletions   Show diff stats
features/step_definitions/noosfero_steps.rb
... ... @@ -503,6 +503,9 @@ end
503 503 Given /^someone suggested the following article to be published$/ do |table|
504 504 table.hashes.map{|item| item.dup}.each do |item|
505 505 target = Community[item.delete('target')]
  506 + item[:article] = {}
  507 + item[:article][:name] = item.delete('article_name')
  508 + item[:article][:body] = item.delete('article_body')
506 509 task = SuggestArticle.create!(:target => target, :data => item)
507 510 end
508 511 end
... ...