remove depreciated rspec syntax