fixed rspec deprecation