From ce9bf918c1dd6102f20fc701c04f2b0a81d70e37 Mon Sep 17 00:00:00 2001 From: Davide Paolo Tua Date: Fri, 21 Feb 2020 12:48:22 +0100 Subject: [PATCH] Fix syntax errors in be_between matcher --- src/spectator/dsl/matchers.cr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/spectator/dsl/matchers.cr b/src/spectator/dsl/matchers.cr index 2108a88..b533c5a 100644 --- a/src/spectator/dsl/matchers.cr +++ b/src/spectator/dsl/matchers.cr @@ -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.