avoid rspec deprecation