Sha256: 6da8f4e53d2b9589a324e6fa29b699377b85b8b62e1349069096f53a1abf07d3
Contents?: true
Size: 695 Bytes
Versions: 16
Compression:
Stored size: 695 Bytes
Contents
if !exists("g:speckle_env") g:speckle_env = {} g:speckle_env.matchers = g:MatchersConstructor() g:speckle_env.assertions = 0 end def expect(actual) env = g:speckle_env env.actual = actual matchers = env.matchers expectation = g:ExpectationConstructor(a:actual) expectation.load(matchers) return expectation end def get_matchers() env = g:speckle_env matchers = env.matchers return matchers end def define_matcher(ok_name, not_ok_name, matcher) matchers = get_matchers() matchers.define_pair(ok_name, not_ok_name, matcher) end def get_logger() unless exists('g:logger') g:logger = g:LoggerConstructor() end return g:logger end logger = get_logger()
Version data entries
16 entries across 16 versions & 1 rubygems