@api private Base class for specifying a change from and/or to specific values.
@private
@private
# File lib/rspec/matchers/built_in/change.rb, line 175 def description "change #{@change_details.message} #{change_description}" end
@private
# File lib/rspec/matchers/built_in/change.rb, line 180 def failure_message return not_given_a_block_failure unless Proc === @event_proc return before_value_failure unless matches_before? return did_not_change_failure unless @change_details.changed? after_value_failure end
@private
# File lib/rspec/matchers/built_in/change.rb, line 167 def matches?(event_proc) @event_proc = event_proc return false unless Proc === event_proc @change_details.perform_change(event_proc) @change_details.changed? && matches_before? && matches_after? end
Generated with the Darkfish Rdoc Generator 2.