Skip to content

Testing

Michael Haglund edited this page Feb 15, 2020 · 3 revisions

Subserver provides a feature for you to test the use of Subserver without actually publishing to PubSub.

require 'subserver/testing'

Subserver::Testing.fake!

When in Testing mode calling publish on your topic will simply return true.

Clone this wiki locally