Remove Test prefix

This commit is contained in:
Michael Miller 2021-09-22 17:53:42 -06:00
parent 627a288358
commit 64b9c13436
No known key found for this signature in database
GPG key ID: FB9F12F7C646A4AD
2 changed files with 3 additions and 3 deletions

View file

@ -13,7 +13,7 @@ module Spectator::Matchers
end
# 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
end

View file

@ -88,7 +88,7 @@ module Spectator::Matchers
# expect("foobar").to be === /foo/
# ```
def ===(value)
expected = TestValue.new(value)
expected = Value.new(value)
PatternMatcher.new(expected)
end
@ -98,7 +98,7 @@ module Spectator::Matchers
# expect("foobar").to be =~ /foo/
# ```
def =~(value)
expected = TestValue.new(value)
expected = Value.new(value)
PatternMatcher.new(expected)
end