Sha256: 0f34e5dc345e9cbe18651bf712a020262bb86805e06fde89bbb5efa23e7589a7
Contents?: true
Size: 245 Bytes
Versions: 2
Compression:
Stored size: 245 Bytes
Contents
module OpalTest module Assertions def assert(test, msg = "Failed assertion, no message given.") unless test msg = msg.call if Proc === msg raise ExpectationNotMetError, msg end true end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
opal-spec-0.2.15 | opal/opal/spec/assertions.rb |
opal-spec-0.2.14 | lib/assets/javascripts/opal/spec/assertions.rb |