mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Fix accidental deletion
This commit is contained in:
parent
83ac420273
commit
2bf6682816
1 changed files with 2 additions and 1 deletions
|
@ -14,7 +14,8 @@ module Spectator::Matchers
|
||||||
# Returns a new matcher, with the same bounds, but uses an inclusive range.
|
# Returns a new matcher, with the same bounds, but uses an inclusive range.
|
||||||
def inclusive
|
def inclusive
|
||||||
label = expected.label
|
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)
|
RangeMatcher.new(expected)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue