Skip to content
Browse files

Made the : optional, to avoid issues.

  • Loading branch information...
1 parent 68ca50f commit d4b8cac70c4eeef30d150438138f2cd95bd2be05 @cj cj committed with joshuaclayton
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/factory_girl/step_definitions.rb
2 lib/factory_girl/step_definitions.rb
@@ -97,7 +97,7 @@ def initialize(human_hash_to_attributes_hash, key, value)
FactoryGirl.factories.each do |factory|
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(, attributes)

0 comments on commit d4b8cac

Please sign in to comment.
Something went wrong with that request. Please try again.