DEV Community

Discussion on: The 10-minute Rails Pub/Sub

Collapse
 
zorbash profile image
Dimitris Zorbas

Structuring your event subscriptions in interactor classes sounds good. To skip event subscriber calls in your tests you can use regular stubs.

For example allow(UserSubscriber).to receive(:subscribe) would do the trick.