fixing rspec-3 deprecation

fixing rspec-3 deprecation