<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -107,11 +107,11 @@ You can refer to other models in the fields
   And a person: &quot;ethel&quot; exists
   And a fatherhood exists with parent: user &quot;fred&quot;, child: user &quot;ethel&quot;
   
-&quot;Given &lt;b&gt;n&lt;/b&gt; models exist&quot;, e.g.
+&quot;Given &lt;b&gt;n models&lt;/b&gt; exist&quot;, e.g.
   
   Given 10 users exist
   
-&quot;Given &lt;b&gt;n&lt;/b&gt; &lt;b&gt;models&lt;/b&gt; exist with &lt;b&gt;fields&lt;/b&gt;&quot;, examples:
+&quot;Given &lt;b&gt;n models&lt;/b&gt; exist with &lt;b&gt;fields&lt;/b&gt;&quot;, examples:
 
   Given 10 users exist with activated: false
 
@@ -133,11 +133,11 @@ You can use other models, booleans, numerics, and strings as fields
   Then a user should exist with activated: false
   Then a user should exist with activated: true, email: &quot;fred@gmail.com&quot;
   
-&quot;Then &lt;b&gt;n&lt;/b&gt; &lt;b&gt;models&lt;/b&gt; should exist&quot;, e.g.
+&quot;Then &lt;b&gt;n models&lt;/b&gt; should exist&quot;, e.g.
 
   Then 10 events should exist
   
-&quot;Then &lt;b&gt;n&lt;/b&gt; &lt;b&gt;models&lt;/b&gt; should exist with &lt;b&gt;fields&lt;/b&gt;&quot;, e.g.
+&quot;Then &lt;b&gt;n models&lt;/b&gt; should exist with &lt;b&gt;fields&lt;/b&gt;&quot;, e.g.
 
   Then 2 people should exist with father: person &quot;fred&quot;
   
@@ -159,7 +159,7 @@ Many-to-one assocs: &quot;Then &lt;b&gt;a model&lt;/b&gt; should be [in|one of] &lt;b&gt;other model&lt;/b
   Then the user should have a status # =&gt; user.status?.should == true
   Then the car: &quot;batmobile&quot; should be fast # =&gt; car.fast?.should == true
   
-&quot;Then &lt;b&gt;a model&lt;/b&gt; should [be|have] [a|an] &lt;b&gt;predicate&lt;/b&gt;&quot;, e.g.
+&quot;Then &lt;b&gt;a model&lt;/b&gt; should not [be|have] [a|an] &lt;b&gt;predicate&lt;/b&gt;&quot;, e.g.
 
   Then person: &quot;fred&quot; should not be childless # =&gt; fred.childless?.should == false
   </diff>
      <filename>README.rdoc</filename>
    </modified>
    <modified>
      <diff>@@ -28,6 +28,7 @@ ActiveRecord::Migration.suppress_messages do
     
     create_table :users, :force =&gt; true do |t|
       t.string :name, :status, :email
+      t.decimal :attitude_score, :precision =&gt; 4, :scale =&gt; 2
     end
   end
 end
@@ -52,12 +53,12 @@ class Tine &lt; ActiveRecord::Base
   belongs_to :fork
 end
 
-# Machinist bluepriint for this
+# Machinist blueprint for this
 class Spoon &lt; ActiveRecord::Base
   validates_presence_of :name
 end
 
-# we don;t want abstract classes getting in there
+# we don't want abstract classes getting in there
 class AbstractUser &lt; ActiveRecord::Base
   self.abstract_class = true
 end
@@ -65,6 +66,9 @@ end
 # No factory or blueprint for this
 class User &lt; AbstractUser
   validates_presence_of :name
+  def positive_person?
+    !attitude_score.nil? &amp;&amp; attitude_score &gt; 0
+  end
 end
 
 # controllers</diff>
      <filename>features/app/app.rb</filename>
    </modified>
    <modified>
      <diff>@@ -17,4 +17,10 @@ Feature: I can easily create models from my blueprints
     Given I exist with status: &quot;pwned&quot;, name: &quot;fred&quot;
     Then I should have a status
     And the user: &quot;me&quot; should have a status
-  
\ No newline at end of file
+  
+  Scenario: I create positive and negative users
+    Given a user exists with name: &quot;Fred&quot;, attitude_score: +5.42
+    And another user exists with name: &quot;Ethel&quot;, attitude_score: -1.46
+    Then 2 users should exist
+    And the 1st user should be a positive person
+    And the 2nd user should not be a positive person
\ No newline at end of file</diff>
      <filename>features/pickle/create_from_active_record.feature</filename>
    </modified>
    <modified>
      <diff>@@ -22,7 +22,7 @@ module Pickle
       end
 
       def match_value
-        &quot;(?:\&quot;#{match_quoted}\&quot;|true|false|\\d+(?:\\.\\d+)?)&quot;
+        &quot;(?:\&quot;#{match_quoted}\&quot;|true|false|[+-]?\\d+(?:\\.\\d+)?)&quot;
       end
 
       def match_field</diff>
      <filename>lib/pickle/parser/matchers.rb</filename>
    </modified>
    <modified>
      <diff>@@ -41,8 +41,8 @@ describe Pickle::Parser::Matchers do
       atom_should_match     :match_label, [': &quot;gday&quot;', ': &quot;gday mate&quot;']
       atom_should_not_match :match_label, [': &quot;gday&quot;&quot;', ': gday']
   
-      atom_should_match     :match_field, ['foo: &quot;this is the life&quot;', 'bar_man: &quot;and so is this&quot;', 'boolean: false', 'boolean: true', 'numeric: 10', 'numeric: 12.5']
-      atom_should_not_match :match_field, ['foo bar: &quot;this aint workin&quot;']
+      atom_should_match     :match_field, ['foo: &quot;this is the life&quot;', 'bar_man: &quot;and so is this&quot;', 'boolean: false', 'boolean: true', 'numeric: 10', 'numeric: 12.5', 'numeric: +10', 'numeric: +12.5', 'numeric: -10', 'numeric: -12.5']
+      atom_should_not_match :match_field, ['foo bar: &quot;this aint workin&quot;', 'not_numeric: --10', 'not_numeric: -ten']
   
       atom_should_match     :match_fields, ['foo: &quot;bar&quot;', 'foo: &quot;bar&quot;, baz: &quot;bah&quot;']
       atom_should_not_match :match_fields, ['foo bar: &quot;baz&quot;', 'email: &quot;a&quot;, password: &quot;b&quot;, and password_confirmation: &quot;c&quot;']</diff>
      <filename>spec/lib/pickle_parser_matchers_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>faa774c9eae1c249930266e3c4cf75c2ba69bef3</id>
    </parent>
  </parents>
  <author>
    <name>Michael MacDonald</name>
    <email>michaelm@amc.org.au</email>
  </author>
  <url>http://github.com/schlick/pickle/commit/c3b1fad3bd50d758032165a13a9336f76c527b3d</url>
  <id>c3b1fad3bd50d758032165a13a9336f76c527b3d</id>
  <committed-date>2009-10-25T23:40:38-07:00</committed-date>
  <authored-date>2009-10-25T23:40:38-07:00</authored-date>
  <message>match_value now matches numbers preceded with a positive and negative sign eg +1.5 and -1</message>
  <tree>2b71b315f64a6fb322c79140156c39a255f0942b</tree>
  <committer>
    <name>Michael MacDonald</name>
    <email>michaelm@amc.org.au</email>
  </committer>
</commit>
