Fix deprecation warnings with newer versions of RSpec.