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:
parent
da01d4bd83
commit
6e1e3ea740
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue