lib/rspec/sleeping_king_studios/matchers/core/have_predicate_matcher.rb
# Sets a value expectation. The matcher will compare the value from
# #property? with the specified value.
#
# @param [Object] value The value to compare.
#
# @return [HaveReaderMatcher] self
Sets a value expectation. The matcher will compare the value from
property. with the specified value.
Sets a value expectation . The matcher will compare the value from property . with the specified value .
def with_value value
      if strict_matching? && !(value === true || value === false)
        raise ArgumentError.new 'predicate must return true or false'
      end 
      @value = value
      @value_set = true
      self
    end
def with_value value if strict_matching? && ! ( value === true || value === false ) raise ArgumentError . new 'predicate must return true or false' end @value = value @value_set = true self end
Sets a value expectation.
Sets a value expectation .
# if
None
HaveReaderMatcher
value
<not_specific>
<not_specific>
value The value to compare.
value The value to compare .