mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Remove splat
This commit is contained in:
parent
c720147974
commit
5ec7e25d57
1 changed files with 2 additions and 2 deletions
|
@ -475,7 +475,7 @@ module Spectator
|
||||||
# expect(%i[a b c]).to contain(%i[a b])
|
# expect(%i[a b c]).to contain(%i[a b])
|
||||||
# ```
|
# ```
|
||||||
macro contain_elements(expected)
|
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)
|
::Spectator::Matchers::ContainMatcher.new(%test_value)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -559,7 +559,7 @@ module Spectator
|
||||||
# expect([1, 2, 3, :a, :b, :c]).to have_elements([Int32, Symbol])
|
# expect([1, 2, 3, :a, :b, :c]).to have_elements([Int32, Symbol])
|
||||||
# ```
|
# ```
|
||||||
macro have_elements(expected)
|
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)
|
::Spectator::Matchers::HaveMatcher.new(%test_value)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue