mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Remove Test prefix
This commit is contained in:
parent
627a288358
commit
64b9c13436
2 changed files with 3 additions and 3 deletions
|
@ -13,7 +13,7 @@ module Spectator::Matchers
|
||||||
end
|
end
|
||||||
|
|
||||||
# Checks whether the matcher is satisifed with the expression given to it.
|
# Checks whether the matcher is satisifed with the expression given to it.
|
||||||
private def match?(actual : TestExpression(T)) : Bool forall T
|
private def match?(actual : Expression(T)) : Bool forall T
|
||||||
actual.value === expected.value
|
actual.value === expected.value
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -88,7 +88,7 @@ module Spectator::Matchers
|
||||||
# expect("foobar").to be === /foo/
|
# expect("foobar").to be === /foo/
|
||||||
# ```
|
# ```
|
||||||
def ===(value)
|
def ===(value)
|
||||||
expected = TestValue.new(value)
|
expected = Value.new(value)
|
||||||
PatternMatcher.new(expected)
|
PatternMatcher.new(expected)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -98,7 +98,7 @@ module Spectator::Matchers
|
||||||
# expect("foobar").to be =~ /foo/
|
# expect("foobar").to be =~ /foo/
|
||||||
# ```
|
# ```
|
||||||
def =~(value)
|
def =~(value)
|
||||||
expected = TestValue.new(value)
|
expected = Value.new(value)
|
||||||
PatternMatcher.new(expected)
|
PatternMatcher.new(expected)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue