Cleanup unused rspec method.
Compatiblity fix for old RSpec versions.