Skip to content

Commit 87368e1

Browse files
committed
[API] Fix bug for skipping versions
1 parent 56aac53 commit 87368e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

api-spec-testing/test_file/test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,8 +287,8 @@ def expects_exception?(action)
287287
end
288288

289289
def __parse_versions(versions)
290-
low = ['', nil].include? versions[0] ? '0' : versions[0]
291-
high = ['', nil].include? versions[2] ? '9999' : versions[2]
290+
low = (['', nil].include? versions[0]) ? '0' : versions[0]
291+
high = (['', nil].include? versions[2]) ? '9999' : versions[2]
292292
[low, high]
293293
end
294294
end

0 commit comments

Comments
 (0)