fix rspec 3 deprecations