From 5ec7e25d576fc1f83df2986881501f6b726d1923 Mon Sep 17 00:00:00 2001 From: Michael Miller Date: Wed, 23 Dec 2020 12:54:44 -0700 Subject: [PATCH] Remove splat --- 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 2353ca2..c234d09 100644 --- a/src/spectator/dsl/matchers.cr +++ b/src/spectator/dsl/matchers.cr @@ -475,7 +475,7 @@ module Spectator # expect(%i[a b c]).to contain(%i[a b]) # ``` macro contain_elements(expected) - %test_value = ::Spectator::TestValue.new({{expected}}, {{expected.splat.stringify}}) + %test_value = ::Spectator::TestValue.new({{expected}}, {{expected.stringify}}) ::Spectator::Matchers::ContainMatcher.new(%test_value) end @@ -559,7 +559,7 @@ module Spectator # expect([1, 2, 3, :a, :b, :c]).to have_elements([Int32, Symbol]) # ``` macro have_elements(expected) - %test_value = ::Spectator::TestValue.new({{expected}}, {{expected.splat.stringify}}) + %test_value = ::Spectator::TestValue.new({{expected}}, {{expected.stringify}}) ::Spectator::Matchers::HaveMatcher.new(%test_value) end