fix rspec deprecations