fix for rspec deprecation