collectiveidea / interactor

Interactor provides a common interface for performing complex user interactions.
MIT License
3.36k stars 212 forks source link

Changed interactor.call to interactor.run in test documentation. #83

Closed robjacoby closed 9 years ago

robjacoby commented 9 years ago

Using the method #call causes #fail! to raise an exception which prevents the example tests from working. Using #run rescues the exception and allows you to run expectations on the resulting context. [ci skip]

michaelherold commented 9 years ago

#run isn't part of an interactor's public API, it's an internal API. If you look at #80, I rework the documentation and show how I test my interactors.

robjacoby commented 9 years ago

Ah damnit my apologies. I keep forgetting that pull-requests and issues are no longer combined in githubs interface and I missed that there was already a pull request open for this. I will close this PR as it's no longer required. Thanks @michaelherold