<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -13,6 +13,7 @@ config/hoe.rb
 config/requirements.rb
 lib/matchy.rb
 lib/matchy/version.rb
+lib/matchy/expectation_builder
 lib/matchy/modals.rb
 lib/matchy/def_matcher.rb
 lib/matchy/matcher_builder.rb</diff>
      <filename>Manifest.txt</filename>
    </modified>
    <modified>
      <diff>@@ -1,19 +1,9 @@
 module Matchy
   module ExpectationBuilder
-    def self.build_expectation(type, exp, obj)
-      if exp
-        match_expectation(exp, (type == :should), obj)
-      else
-        return Matchy::Expectations::OperatorExpectation.new(obj, (type == :should))
-      end
-    end
-    
-    def self.match_expectation(expectation, match, obj)
-      if expectation.matches?(obj) != match
-        expectation.fail!(match)
-      else
-        expectation.pass!(match)
-      end
+    def self.build_expectation(match, exp, obj)
+      return Matchy::Expectations::OperatorExpectation.new(obj, match) unless exp
+      
+      (exp.matches?(obj) != match) ? exp.fail!(match) : exp.pass!(match)
     end
   end
 end
\ No newline at end of file</diff>
      <filename>lib/matchy/expectation_builder.rb</filename>
    </modified>
    <modified>
      <diff>@@ -9,7 +9,7 @@ module Matchy
     #   lambda { raise &quot;u r doomed&quot; }.should raise_error
     #
     def should(expectation = nil)
-      Matchy::ExpectationBuilder.build_expectation(:should, expectation, self)
+      Matchy::ExpectationBuilder.build_expectation(true, expectation, self)
     end
     
     alias :will :should
@@ -23,7 +23,7 @@ module Matchy
     #   lambda { &quot;savd bai da bell&quot; }.should_not raise_error
     #
     def should_not(expectation = nil)
-      Matchy::ExpectationBuilder.build_expectation(:should_not, expectation, self)
+      Matchy::ExpectationBuilder.build_expectation(false, expectation, self)
     end
     
     alias :will_not :should_not</diff>
      <filename>lib/matchy/modals.rb</filename>
    </modified>
    <modified>
      <diff>@@ -7,22 +7,22 @@ class TestExpectationBuilder &lt; Test::Unit::TestCase
   end
   
   def test_should
-    exp = Matchy::ExpectationBuilder.build_expectation(:should, nil, @obj)
+    exp = Matchy::ExpectationBuilder.build_expectation(true, nil, @obj)
     exp.send(:==, @obj)
   end
   
   def test_should_fails
-    expect_1 = Matchy::ExpectationBuilder.build_expectation(:should, nil, 1)
+    expect_1 = Matchy::ExpectationBuilder.build_expectation(true, nil, 1)
     lambda {expect_1.send(:==, 2)}.should raise_error
   end
   
   def test_should_not
-    exp = Matchy::ExpectationBuilder.build_expectation(:should_not, nil, @obj)
+    exp = Matchy::ExpectationBuilder.build_expectation(false, nil, @obj)
     exp.send(:==, 1)
   end
   
   def test_should_not_fails
-    expect_not_1 = Matchy::ExpectationBuilder.build_expectation(:should_not, nil, 1)
+    expect_not_1 = Matchy::ExpectationBuilder.build_expectation(false, nil, 1)
     lambda {expect_not_1.send(:==, 1)}.should raise_error
   end
 end
\ No newline at end of file</diff>
      <filename>test/test_expectation_builder.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>822a3ecd61fa38bf0e54e101f39669c37fb1969d</id>
    </parent>
  </parents>
  <author>
    <name>Matthias Hennemeyer</name>
    <email>mhennemeyer@gmail.com</email>
  </author>
  <url>http://github.com/jeremymcanally/matchy/commit/a2de3d65fa031f1f3915aee2fd69bd95e3526340</url>
  <id>a2de3d65fa031f1f3915aee2fd69bd95e3526340</id>
  <committed-date>2009-02-10T23:22:40-08:00</committed-date>
  <authored-date>2009-02-10T06:22:41-08:00</authored-date>
  <message>Updated Manifest.

Signed-off-by: Jeremy McAnally &lt;jeremymcanally@gmail.com&gt;</message>
  <tree>b40144bd1e7ca3e1ff8616286425a9e833ddd8dc</tree>
  <committer>
    <name>Jeremy McAnally</name>
    <email>jeremymcanally@gmail.com</email>
  </committer>
</commit>
