diff --git a/src/spectator/error_result.cr b/src/spectator/error_result.cr index 1f19062..989b180 100644 --- a/src/spectator/error_result.cr +++ b/src/spectator/error_result.cr @@ -7,7 +7,7 @@ module Spectator class ErrorResult < FailResult # Calls the `error` method on *visitor*. def accept(visitor) - visitor.error + visitor.error(self) end # Calls the `error` method on *visitor*. diff --git a/src/spectator/fail_result.cr b/src/spectator/fail_result.cr index a0b01e0..5bc0f06 100644 --- a/src/spectator/fail_result.cr +++ b/src/spectator/fail_result.cr @@ -17,7 +17,7 @@ module Spectator # Calls the `failure` method on *visitor*. def accept(visitor) - visitor.fail + visitor.fail(self) end # Calls the `failure` method on *visitor*. diff --git a/src/spectator/pass_result.cr b/src/spectator/pass_result.cr index 1093590..eb2bfcd 100644 --- a/src/spectator/pass_result.cr +++ b/src/spectator/pass_result.cr @@ -5,7 +5,7 @@ module Spectator class PassResult < Result # Calls the `pass` method on *visitor*. def accept(visitor) - visitor.pass + visitor.pass(self) end # Calls the `pass` method on *visitor*. diff --git a/src/spectator/pending_result.cr b/src/spectator/pending_result.cr index 364f2f4..d1d6f2c 100644 --- a/src/spectator/pending_result.cr +++ b/src/spectator/pending_result.cr @@ -13,7 +13,7 @@ module Spectator # Calls the `pending` method on the *visitor*. def accept(visitor) - visitor.pending + visitor.pending(self) end # Calls the `pending` method on the *visitor*. diff --git a/src/spectator/spec/events.cr b/src/spectator/spec/events.cr index 6b298af..e146e1c 100644 --- a/src/spectator/spec/events.cr +++ b/src/spectator/spec/events.cr @@ -49,22 +49,22 @@ module Spectator end # Invokes the example passed method. - def pass + def pass(_result) @formatter.example_passed(@notification) end # Invokes the example failed method. - def fail + def fail(_result) @formatter.example_failed(@notification) end # Invokes the example error method. - def error + def error(_result) @formatter.example_error(@notification) end # Invokes the example pending method. - def pending + def pending(_result) @formatter.example_pending(@notification) end end