Fix accidental deletion

This commit is contained in:
Davide Paolo Tua 2020-02-21 13:23:33 +01:00
parent 83ac420273
commit 2bf6682816
1 changed files with 2 additions and 1 deletions

View File

@ -14,7 +14,8 @@ module Spectator::Matchers
# Returns a new matcher, with the same bounds, but uses an inclusive range.
def inclusive
label = expected.label
new_range = Range.new(range.begin, label)
new_range = Range.new(range.begin, range.end, exclusive: false)
expected = TestValue.new(new_range, label)
RangeMatcher.new(expected)
end