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

Version Path
speckle-0.1.26 lib/dsl.riml
speckle-0.1.25 lib/dsl.riml
speckle-0.1.24 lib/dsl.riml
speckle-0.1.23 lib/dsl.riml
speckle-0.1.22 lib/dsl.riml
speckle-0.1.21 lib/dsl.riml
speckle-0.1.20 lib/dsl.riml
speckle-0.1.19 lib/dsl.riml
speckle-0.1.18 lib/dsl.riml
speckle-0.1.17 lib/dsl.riml
speckle-0.1.16 lib/dsl.riml
speckle-0.1.15 lib/dsl.riml
speckle-0.1.14 lib/dsl.riml
speckle-0.1.13 lib/dsl.riml
speckle-0.1.12 lib/dsl.riml
speckle-0.1.11 lib/dsl.riml