Sha256: 4303d24db526ee93c2fd1921e934b9a9e7b58cd3e7ac151d6672f069f8366286
Contents?: true
Size: 572 Bytes
Versions: 5
Compression:
Stored size: 572 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 # => #<Spectus::Result::Pass...> module Spectus # Expectations are built with this method. # # @example _Absolute requirement_ definition # this { 42 }.MUST Equal: 42 # => #<Spectus::Result::Pass...> # # @param input [Proc] The code to test. # # @return [ExpectationTarget] The expectation target. def self.this(&input) ExpectationTarget.new(&input) end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
spectus-2.7.1 | lib/spectus.rb |
spectus-2.7.0 | lib/spectus.rb |
spectus-2.6.0 | lib/spectus.rb |
spectus-2.5.0 | lib/spectus.rb |
spectus-2.4.0 | lib/spectus.rb |