lib/spectus/expectation_target.rb in spectus-3.1.4 vs lib/spectus/expectation_target.rb in spectus-3.2.0
- old
+ new
@@ -21,11 +21,11 @@
# @example _Absolute requirement_ definition
# it { 'foo'.upcase }.MUST eql 'FOO'
#
# @param matcher [#matches?] The matcher.
#
- # @return [Result::Fail, Result::Pass] Report if the spec pass or fail.
+ # @return [Expresenter::Fail, Expresenter::Pass] Report if the spec pass or fail.
def MUST(matcher)
RequirementLevel::Must.new(
callable: callable,
isolation: false,
negate: false,
@@ -52,11 +52,11 @@
# @example _Absolute prohibition_ definition
# it { 'foo'.size }.MUST_NOT equal 42
#
# @param matcher [#matches?] The matcher.
#
- # @return [Result::Fail, Result::Pass] Report if the spec pass or fail.
+ # @return [Expresenter::Fail, Expresenter::Pass] Report if the spec pass or fail.
def MUST_NOT(matcher)
RequirementLevel::Must.new(
callable: callable,
isolation: false,
negate: true,
@@ -85,11 +85,11 @@
# @example _Recommended_ definition
# it { 'foo'.valid_encoding? }.SHOULD equal true
#
# @param matcher [#matches?] The matcher.
#
- # @return [Result::Fail, Result::Pass] Report if the spec pass or fail.
+ # @return [Expresenter::Fail, Expresenter::Pass] Report if the spec pass or fail.
def SHOULD(matcher)
RequirementLevel::Should.new(
callable: callable,
isolation: false,
negate: false,
@@ -119,11 +119,11 @@
# @example _Not recommended_ definition
# it { ''.blank? }.SHOULD_NOT raise_exception NoMethodError
#
# @param matcher [#matches?] The matcher.
#
- # @return [Result::Fail, Result::Pass] Report if the spec pass or fail.
+ # @return [Expresenter::Fail, Expresenter::Pass] Report if the spec pass or fail.
def SHOULD_NOT(matcher)
RequirementLevel::Should.new(
callable: callable,
isolation: false,
negate: true,
@@ -159,10 +159,10 @@
# @example _Optional_ definition
# it { 'foo'.bar }.MAY match /^foo$/
#
# @param matcher [#matches?] The matcher.
#
- # @return [Result::Fail, Result::Pass] Report if the spec pass or fail.
+ # @return [Expresenter::Fail, Expresenter::Pass] Report if the spec pass or fail.
def MAY(matcher)
RequirementLevel::May.new(
callable: callable,
isolation: false,
negate: false,