fix rspec deprecations

See for reference: https://github.com/rspec/rspec-expectations/issues/231