1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00

use conditional modifier

This commit is contained in:
Thomas Walpole 2018-11-18 12:52:39 -08:00
parent da01d4bd83
commit 6e1e3ea740

View file

@ -94,7 +94,7 @@ module Capybara
if between
min, max = between.min, (between.end && between.max)
size = load_up_to(max ? max + 1 : min)
return between.include?(size) ? 0 : size <=> min
return size <=> min unless between.include?(size)
end
0