Sha256: bfce4bf8b15f16b9d6b384255d2a7a3272ec5777fdec7aae91fdc1bb2b393d31
Contents?: true
Size: 651 Bytes
Versions: 2
Compression:
Stored size: 651 Bytes
Contents
module Fix # It's helper. # # @api private # module ItHelper # Add it method to the DSL. # # @api public # # @example It must eql "FOO" # it { MUST Equal: 'FOO' } # # @param spec [Proc] A spec to compare against the computed actual value. # # @return [Array] List of results. def it(&spec) i = It.new(@front_object, *@challenges) result = begin i.instance_eval(&spec) rescue Spectus::Result::Fail => f f end print result.to_char if @configuration.fetch(:verbose, true) results << result end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fix-0.9.1 | lib/fix/helpers/it_helper.rb |
fix-0.9.0 | lib/fix/helpers/it_helper.rb |