1
0
Fork 0
mirror of https://github.com/sinatra/sinatra synced 2023-03-27 23:18:01 -04:00

unless nil? -> if

This commit is contained in:
Florian Hanke 2012-06-18 15:31:03 +10:00
parent e3d9e012ad
commit de21260531

View file

@ -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