updated rspec
Removed depreciated function from test