Sha256: 047e9532c0dc22975e3518d916ee47f9abf5c300937e2d9168afdd39d8b299ec
Contents?: true
Size: 642 Bytes
Versions: 4
Compression:
Stored size: 642 Bytes
Contents
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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
spectus-3.0.6 | lib/spectus.rb |
spectus-3.0.5 | lib/spectus.rb |
spectus-3.0.4 | lib/spectus.rb |
spectus-3.0.3 | lib/spectus.rb |