pharo-spec / Spec

Spec is a framework in Pharo for describing user interfaces.
MIT License
62 stars 65 forks source link

whenNumberChangedDo: accepts only 1 argument blocks #1661

Closed hernanmd closed 3 days ago

hernanmd commented 3 days ago

Description

The method comment describes the message could be sent with two arguments, but it only accepts one argument:

    "Inform when number property has changed. 
     `aBlock` has three optional arguments: 
     - new value
     - old value
     - the announcement triggering this action"

To reproduce

SpNumberInputFieldPresenter new
    whenNumberChangedDo: [ : newValue : oldValue | self haltIf: [ oldValue = newValue ] ];
    open.

Type something and see the error.