Hello #ruby people, How can I test using #Rspec that accept method is receive(triggered).
Uncategorized
2
Posts
2
Posters
0
Views
-
Hello #ruby people, How can I test using #Rspec that accept method is receive(triggered). The class is here https://codeberg.org/codeDude/romodoro-socket/src/branch/main/lib/romodoro/socket/timer/command_server.rb#L24
I having issues trying to mock and stub the dependencies -
Hello #ruby people, How can I test using #Rspec that accept method is receive(triggered). The class is here https://codeberg.org/codeDude/romodoro-socket/src/branch/main/lib/romodoro/socket/timer/command_server.rb#L24
I having issues trying to mock and stub the dependencies@codeDude sorry I just woke up and I may be saying something stupid, but don't you need to wait/join on that thread to make sure its block is executed?