Sha256: 3050bfe83c12d3eb028e1ab46610efda399c49626b60e817692de0a79e5f2fc3

Contents?: true

Size: 572 Bytes

Versions: 5

Compression:

Stored size: 572 Bytes

Contents

# 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

require_relative File.join 'spectus', 'expectation_target'

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
spectus-2.10.0 lib/spectus.rb
spectus-2.9.2 lib/spectus.rb
spectus-2.9.1 lib/spectus.rb
spectus-2.9.0 lib/spectus.rb
spectus-2.8.0 lib/spectus.rb