Skip to content
This repository
Browse code

Made the : optional, to avoid issues.

  • Loading branch information...
commit d4b8cac70c4eeef30d150438138f2cd95bd2be05 1 parent 68ca50f
authored March 08, 2012 joshuaclayton committed March 09, 2012

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  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)
97 97
 FactoryGirl.factories.each do |factory|
98 98
   factory.compile
99 99
   factory.human_names.each do |human_name|
100  
-    Given /^the following (?:#{human_name}|#{human_name.pluralize}) exists?:$/i do |table|
  100
+    Given /^the following (?:#{human_name}|#{human_name.pluralize}) exists?:?$/i do |table|
101 101
       table.hashes.each do |human_hash|
102 102
         attributes = convert_human_hash_to_attribute_hash(human_hash, factory.associations)
103 103
         FactoryGirl.create(factory.name, attributes)

0 notes on commit d4b8cac

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