@api private Used to specify a change to a specific value (and, optionally,
from a specific value).
Public Class Methods
new(change_details, expected_after)click to toggle source
# File lib/rspec/matchers/built_in/change.rb, line 270definitialize(change_details, expected_after)
@description_suffix = nilsuper(change_details, MATCH_ANYTHING, expected_after)
end
Public Instance Methods
does_not_match?(_event_proc)click to toggle source
@private
# File lib/rspec/matchers/built_in/change.rb, line 284defdoes_not_match?(_event_proc)
raiseNotImplementedError, "`expect { }.not_to change { }.to()` is not supported"end
from(value)click to toggle source
@api public Specifies the original value.
# File lib/rspec/matchers/built_in/change.rb, line 277deffrom(value)
@expected_before = value@description_suffix = " from #{description_of value}"selfend