Compatiblity fix for old RSpec versions.