lib/matchi/change.rb in matchi-3.0.0 vs lib/matchi/change.rb in matchi-3.1.0

- old
+ new

@@ -30,12 +30,12 @@ # @example # require "matchi/change" # # object = [] # - # change = Matchi::Change.new(object, :length) - # change.by_at_least(1) + # change_wrapper = Matchi::Change.new(object, :length) + # change_wrapper.by_at_least(1) # # @param expected [#object_id] The minimum delta of the expected change. # # @return [#matches?] A *change by at least* matcher. def by_at_least(expected) @@ -47,12 +47,12 @@ # @example # require "matchi/change" # # object = [] # - # change = Matchi::Change.new(object, :length) - # change.by_at_most(1) + # change_wrapper = Matchi::Change.new(object, :length) + # change_wrapper.by_at_most(1) # # @param expected [#object_id] The maximum delta of the expected change. # # @return [#matches?] A *change by at most* matcher. def by_at_most(expected) @@ -64,12 +64,12 @@ # @example # require "matchi/change" # # object = [] # - # change = Matchi::Change.new(object, :length) - # change.by(1) + # change_wrapper = Matchi::Change.new(object, :length) + # change_wrapper.by(1) # # @param expected [#object_id] The delta of the expected change. # # @return [#matches?] A *change by* matcher. def by(expected) @@ -79,12 +79,12 @@ # Specifies the original value. # # @example # require "matchi/change" # - # change = Matchi::Change.new("foo", :to_s) - # change.from("foo") + # change_wrapper = Matchi::Change.new("foo", :to_s) + # change_wrapper.from("foo") # # @param expected [#object_id] The original value. # # @return [#matches?] A *change from* wrapper. def from(expected) @@ -94,11 +94,11 @@ # Specifies the new value to expect. # # @example # require "matchi/change" # - # change = Matchi::Change.new("foo", :to_s) - # change.to("FOO") + # change_wrapper = Matchi::Change.new("foo", :to_s) + # change_wrapper.to("FOO") # # @param expected [#object_id] The new value to expect. # # @return [#matches?] A *change to* matcher. def to(expected)