Sha256: 4a474a8c528b6003a4c97e66adab1ebfea59c21e38e4ba4bfe0c540aaeb474ef
Contents?: true
Size: 570 Bytes
Versions: 2
Compression:
Stored size: 570 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spectus-2.3.1 | lib/spectus.rb |
spectus-2.3.0 | lib/spectus.rb |