Fix rspec 3 deprecation warning