Commit 6d71512d4b2b048bc23b99c2c1316035ca6ebfb1

Authored by Antonio Terceiro
1 parent c80bfc32

Accept singular form when creating fixture objects

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
features/step_definitions/noosfero_steps.rb
1   -Given /^the following users$/ do |table|
  1 +Given /^the following users?$/ do |table|
2 2 # table is a Cucumber::Ast::Table
3 3 table.hashes.each do |item|
4 4 person_data = item.dup
... ... @@ -7,7 +7,7 @@ Given /^the following users$/ do |table|
7 7 end
8 8 end
9 9  
10   -Given /^the following (communities|enterprises)$/ do |kind,table|
  10 +Given /^the following (community|communities|enterprises?)$/ do |kind,table|
11 11 klass = kind.singularize.camelize.constantize
12 12 table.hashes.each do |row|
13 13 owner = row.delete("owner")
... ...