<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -74,3 +74,25 @@ Feature: Use step definitions generated by factories
     And I should find the following for the last user:
       | name |
       | John |
+
+  Scenario: create instances of a factory with an underscore in its name
+    Given an admin user exists with a name of &quot;John&quot;
+    Then I should find the following for the last user:
+      | name | admin |
+      | John | true  |
+
+  Scenario: use true values when creating instances
+    Given the following user exists:
+      | name | admin |
+      | Bill | true  |
+    Then I should find the following for the last user:
+      | name | admin |
+      | Bill | true  |
+
+  Scenario: use false values when creating instances
+    Given the following user exists:
+      | name | admin |
+      | Mike | false |
+    Then I should find the following for the last user:
+      | name | admin |
+      | Mike | false |</diff>
      <filename>features/factory_girl_steps.feature</filename>
    </modified>
    <modified>
      <diff>@@ -13,6 +13,7 @@ class CreateSchema &lt; ActiveRecord::Migration
 
     create_table :users, :force =&gt; true do |t|
       t.string  :name
+      t.boolean :admin, :default =&gt; false, :null =&gt; false
     end
   end
 end
@@ -32,6 +33,10 @@ end
 Factory.define :user do |f|
 end
 
+Factory.define :admin_user, :parent =&gt; :user do |f|
+  f.admin true
+end
+
 Factory.define :post do |f|
   f.association :author, :factory =&gt; :user
 end</diff>
      <filename>features/support/factories.rb</filename>
    </modified>
    <modified>
      <diff>@@ -42,11 +42,11 @@ Factory.factories.values.each do |factory|
     factory.build_class.columns.each do |column|
       human_column_name = column.name.downcase.gsub('_', ' ')
       Given /^an? #{factory.human_name} exists with an? #{human_column_name} of &quot;([^&quot;]*)&quot;$/i do |value|
-        Factory(factory.human_name, column.name =&gt; value)
+        Factory(factory.factory_name, column.name =&gt; value)
       end
 
       Given /^(\d+) #{factory.human_name}s exist with an? #{human_column_name} of &quot;([^&quot;]*)&quot;$/i do |count, value|
-        count.to_i.times { Factory(factory.human_name, column.name =&gt; value) }
+        count.to_i.times { Factory(factory.factory_name, column.name =&gt; value) }
       end
     end
   end</diff>
      <filename>lib/factory_girl/step_definitions.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>adce9df6c9632c39b789a0f91bf9b37887e5e81c</id>
    </parent>
  </parents>
  <author>
    <name>Joe Ferris</name>
    <email>jferris@metaphor.local</email>
  </author>
  <url>http://github.com/thoughtbot/factory_girl/commit/da51a4e48da97183b0600d92029cc9d19febbaf7</url>
  <id>da51a4e48da97183b0600d92029cc9d19febbaf7</id>
  <committed-date>2009-09-15T15:14:34-07:00</committed-date>
  <authored-date>2009-09-15T15:11:16-07:00</authored-date>
  <message>Fixes for step definitions involving factories with underscores</message>
  <tree>f0a06b117a64b63e0756c489786d70569cd7b835</tree>
  <committer>
    <name>Joe Ferris</name>
    <email>jferris@metaphor.local</email>
  </committer>
</commit>
