Sha256: 6f17e64a2b5fb65373222abb28238fef7352bb351c8efc97f7589988afd42126
Contents?: true
Size: 675 Bytes
Versions: 2
Compression:
Stored size: 675 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.10 | lib/spectus.rb |
spectus-3.0.9 | lib/spectus.rb |