dimanche 6 septembre 2015

RSpec should receive instance object of class

Tell me please how to check if returned object in should_receive is an instance of ClassName.

Messaging.should_receive(:send_text).with(:foo, :bar, object)

Rails 3

Aucun commentaire:

Enregistrer un commentaire