change depreciated rspec syntax