From 6d71512d4b2b048bc23b99c2c1316035ca6ebfb1 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Mon, 28 Dec 2009 19:14:42 -0300 Subject: [PATCH] Accept singular form when creating fixture objects --- features/step_definitions/noosfero_steps.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/features/step_definitions/noosfero_steps.rb b/features/step_definitions/noosfero_steps.rb index d0036f4..22376c5 100644 --- a/features/step_definitions/noosfero_steps.rb +++ b/features/step_definitions/noosfero_steps.rb @@ -1,4 +1,4 @@ -Given /^the following users$/ do |table| +Given /^the following users?$/ do |table| # table is a Cucumber::Ast::Table table.hashes.each do |item| person_data = item.dup @@ -7,7 +7,7 @@ Given /^the following users$/ do |table| end end -Given /^the following (communities|enterprises)$/ do |kind,table| +Given /^the following (community|communities|enterprises?)$/ do |kind,table| klass = kind.singularize.camelize.constantize table.hashes.each do |row| owner = row.delete("owner") -- libgit2 0.21.2