mirror of
https://github.com/sinatra/sinatra
synced 2023-03-27 23:18:01 -04:00
unless nil? -> if
This commit is contained in:
parent
e3d9e012ad
commit
de21260531
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue