Fix deprecation warning in rspec config

This fixes the deprecation warning in Rspec config from issue #3226