Prefer ! over not due to precedence rules

Project: http://git-wip-us.apache.org/repos/asf/buildr/repo
Commit: http://git-wip-us.apache.org/repos/asf/buildr/commit/0bd09016
Tree: http://git-wip-us.apache.org/repos/asf/buildr/tree/0bd09016
Diff: http://git-wip-us.apache.org/repos/asf/buildr/diff/0bd09016

Branch: refs/heads/master
Commit: 0bd090166e789808f865a636b1843de8edd2ca3f
Parents: a08a690
Author: Peter Donald <[email protected]>
Authored: Sun May 25 15:57:08 2014 +1000
Committer: Peter Donald <[email protected]>
Committed: Sun May 25 15:57:08 2014 +1000

----------------------------------------------------------------------
 spec/xpath_matchers.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/buildr/blob/0bd09016/spec/xpath_matchers.rb
----------------------------------------------------------------------
diff --git a/spec/xpath_matchers.rb b/spec/xpath_matchers.rb
index a9120ff..e15bd3c 100644
--- a/spec/xpath_matchers.rb
+++ b/spec/xpath_matchers.rb
@@ -29,7 +29,7 @@ module RSpec
         @response = response
         doc = response.is_a?(REXML::Document) ? response : 
REXML::Document.new(@response)
         match = REXML::XPath.match(doc, @xpath)
-        not match.empty?
+        !match.empty?
       end
 
       def failure_message

Reply via email to