Fix rubocop violation
Fix rspec deprecation warnings