Simulating race conditions in RSpec unit tests Simulating race conditions in RSpec unit tests ruby ruby