Skip to content

Commit a5f0a20

Browse files
authored
Merge pull request #201 from ocher/patch-1
Update README.md part about handling exceptions
2 parents 0b4dee9 + 2c33601 commit a5f0a20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ context.success? # => false
8080

8181
Normally, however, these exceptions are not seen. In the recommended usage, the controller invokes the interactor using the class method `call`, then checks the `success?` method of the context.
8282

83-
This works because the `call` class method swallows exceptions. When unit testing an interactor, if calling custom business logic methods directly and bypassing `call`, be aware that `fail!` will generate such exceptions.
83+
This works because the `call` class method swallows `Interactor::Failure` exceptions. When unit testing an interactor, if calling custom business logic methods directly and bypassing `call`, be aware that `fail!` will generate such exceptions.
8484

8585
See *Interactors in the Controller*, below, for the recommended usage of `call` and `success?`.
8686

0 commit comments

Comments
 (0)