Add expectation class

This commit is contained in:
Michael Miller 2018-08-21 21:07:37 -06:00
parent 0ade9f4dfd
commit b709820e11
2 changed files with 12 additions and 4 deletions

View file

@ -0,0 +1,12 @@
def expect(actual : T) forall T
Spectator::Expectation.new(actual)
end
module Spectator
class Expectation(T)
getter actual : T
protected def initialize(@actual : T)
end
end
end