Permalink
Browse files

unless nil? -> if

  • Loading branch information...
1 parent e3d9e01 commit de212605311b6332751246e71e6217e3e0194ae3 @floere committed Jun 18, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/compile_test.rb
View
2 test/compile_test.rb
@@ -22,7 +22,7 @@ def self.fails pattern, example
it "does not parse #{example} with #{pattern}" do
compiled, _ = compiled pattern
match = compiled.match(example)
- fail %Q{"#{pattern}" does parse "#{example}" but it should fail} unless match.nil?
+ fail %Q{"#{pattern}" does parse "#{example}" but it should fail} if match
end
end
def compiled pattern

0 comments on commit de21260

Please sign in to comment.