mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Fix syntax errors in be_between matcher
This commit is contained in:
parent
3aaab0e74f
commit
ce9bf918c1
1 changed files with 2 additions and 2 deletions
|
@ -342,10 +342,10 @@ module Spectator
|
|||
# expect(100).to be_between(97, 101).exclusive # 97, 98, 99, or 100 (not 101)
|
||||
# ```
|
||||
macro be_between(min, max)
|
||||
%range = Range.new({{min}}, {{max}}))
|
||||
%range = Range.new({{min}}, {{max}})
|
||||
%label = [{{min.stringify}}, {{max.stringify}}].join(" to ")
|
||||
%test_value = ::Spectator::TestValue.new(%range, %label)
|
||||
:Spectator::Matchers::RangeMatcher.new(%test_value)
|
||||
::Spectator::Matchers::RangeMatcher.new(%test_value)
|
||||
end
|
||||
|
||||
# Indicates that some value should be within a delta of an expected value.
|
||||
|
|
Loading…
Reference in a new issue