Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Made the : optional, to avoid issues.

  • Loading branch information...
commit d4b8cac70c4eeef30d150438138f2cd95bd2be05 1 parent 68ca50f
cj cj authored joshuaclayton committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/factory_girl/step_definitions.rb
2  lib/factory_girl/step_definitions.rb
View
@@ -97,7 +97,7 @@ def initialize(human_hash_to_attributes_hash, key, value)
FactoryGirl.factories.each do |factory|
factory.compile
factory.human_names.each do |human_name|
- Given /^the following (?:#{human_name}|#{human_name.pluralize}) exists?:$/i do |table|
+ Given /^the following (?:#{human_name}|#{human_name.pluralize}) exists?:?$/i do |table|
table.hashes.each do |human_hash|
attributes = convert_human_hash_to_attribute_hash(human_hash, factory.associations)
FactoryGirl.create(factory.name, attributes)
Please sign in to comment.
Something went wrong with that request. Please try again.