Open traylenator opened 4 years ago
I will try and look at this during the coming weekend.
However, if you have a fix I would appreciate a PR.
I confess rspec tests are not a strong skill.
I could use some help figuring this out.
I had a quick look the other day and got as far as working out it was not trivial.
How can I mock Stomp client in application? Currently I am using double
to mock Stomp and methods to it. Is this correct way of testing or is there any better approach available?
If mocks work for you, then it is perfectly fine to use them.
I personally do not test the gem using rspec/mocks - I run unit tests against live brokers.
I do not believe that mocks can ever approach what you will see a live running broker actually do.
The gem unit tests are run against:
With:
This results in: