remove rspec deprication warning