Fix syntax errors in be_between matcher

This commit is contained in:
Davide Paolo Tua 2020-02-21 12:48:22 +01:00
parent 3aaab0e74f
commit ce9bf918c1
1 changed files with 2 additions and 2 deletions

View File

@ -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.