rspec 3 deprecation removal

Fix for RSpec deprecation
If you want to be exact: 2.99 also supports the new version. Maybe to this:

```ruby
if Gem::Version.new(RSpec::Core::Version::STRING) >= Gem::Version.new('2.99')
```