async-rspec
async-rspec copied to clipboard
Consider how we can assert that a block of code can not invoke the scheduler
In some cases, we want to assert that a method cannot possibly be non-blocking.
We should consider introducing a way to determine if the scheduler has been checked or not, so that we can make assertions about the behaviour of the code (non-blocking or not).
expect do
# ...
end.to_not be_nondeterministic