Fix minor deprecation warning

Fixes a minor RSpec 3 deprecation warning