RUBY-1225: Use the expects_logging helper.