<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -50,18 +50,29 @@ describe &quot;requirement objects&quot; do
   end
 
   describe &quot;requirements with names beginning with not_&quot; do
-    it &quot;should return the boolean opposite of the requirement name without not_&quot; do
+
+    it &quot;should return the opposite of the requirement name without not_&quot; do
+      @binding.respond_to?(:valid_password?).should == true
+      @binding.respond_to?(:not_valid_password?).should == false
       @binding.evaluate_named_proc_or_method( :valid_password? ).should == true
       @binding.evaluate_named_proc_or_method( :not_valid_password? ).should == false
+    end
+
+    it &quot;should call the method directly if one exists&quot; do
+      mock( @binding ).not_valid_password?() { true }
+      @binding.evaluate_named_proc_or_method( :valid_password? ).should == true
+      @binding.evaluate_named_proc_or_method( :not_valid_password? ).should == true
+    end
 
+    it &quot;should act as the opposite of requirement in guarding a transition&quot; do
       @binding.account_expired?.should == false
       @binding.valid_password?.should == true
-
+      mock( @binding ).valid_password_test { false }
       t = @binding.login_success(:logged_in)
       t.requirements.should == [:not_account_expired?, :valid_password?]
+      t.unmet_requirements.should == [:valid_password?]
+      mock( @binding ).valid_password_test.times(2) { true }
       t.unmet_requirements.should == []
-      @binding.fireable?( [:login_success,:logged_in] ).should == true
-      @obj.login_success?(:logged_in).should == true
       @obj.login_success!(:logged_in).should == true
       @binding.should == :logged_in
     end</diff>
      <filename>spec/features/not_requirements_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>f6bf7f2b087d258600da3972706ce0f37ba8f422</id>
    </parent>
  </parents>
  <author>
    <name>davidlee</name>
    <email>david@davelee.com.au</email>
  </author>
  <url>http://github.com/davidlee/state-fu/commit/9a8dcc68a44ae6663eefa2ade78a3411ff891c92</url>
  <id>9a8dcc68a44ae6663eefa2ade78a3411ff891c92</id>
  <committed-date>2009-06-25T02:50:53-07:00</committed-date>
  <authored-date>2009-06-25T02:50:53-07:00</authored-date>
  <message>bit of spec cleanup for not requirements feature</message>
  <tree>2302c5dba6eb7c998b15ce9a6a84ee09ff4c7cde</tree>
  <committer>
    <name>davidlee</name>
    <email>david@davelee.com.au</email>
  </committer>
</commit>
