Sha256: 37f92bb47a2afa84e4af32ded49ba2548ed5fc9534499e61b8eecf0e5972b237
Contents?: true
Size: 542 Bytes
Versions: 2
Compression:
Stored size: 542 Bytes
Contents
require_relative File.join 'spectus', 'expectation_target' # Namespace for the Spectus library. # # @api public # # @example 42 MUST be equal to 42 # Spectus.this { 42 }.MUST equal: 42 # => true module Spectus # Expectations are built with this method. # # @api public # # @example Absolute requirement definition # this { 42 }.MUST equal: 42 # => true # # @yieldparam input the code to test. # # @return [ExpectationTarget] the expectation target. def self.this(&input) ExpectationTarget.new(&input) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spectus-2.0.3 | lib/spectus.rb |
spectus-2.0.2 | lib/spectus.rb |