Add poll method to rspec examples