Sha256: 3d819b4965205a3560a92b3521685361b1a962ddef46d9789a9d8f884dc17428
Contents?: true
Size: 673 Bytes
Versions: 2
Compression:
Stored size: 673 Bytes
Contents
# frozen_string_literal: true require_relative File.join 'spectus', 'matchers' # Namespace for the Spectus library. # # @api public # # @example It MUST equal 42. # require 'spectus' # it { 42 }.MUST equal 42 # => #<Spectus::Result::Pass...> module Spectus include Matchers # Expectations are built with this method. # # @example An _absolute requirement_ definition. # it { 42 }.MUST equal 42 # => #<Spectus::Result::Pass...> # # @param input [Proc] The code to test. # # @return [ExpectationTarget] The expectation target. def it(&input) ExpectationTarget.new(&input) end end require_relative File.join 'spectus', 'expectation_target'
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spectus-3.0.8 | lib/spectus.rb |
spectus-3.0.7 | lib/spectus.rb |