diff --git a/test/compile_test.rb b/test/compile_test.rb index 45e7e0d0..07045931 100644 --- a/test/compile_test.rb +++ b/test/compile_test.rb @@ -22,7 +22,7 @@ class CompileTest < Test::Unit::TestCase 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