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