Remove rspec warning deprecation from stub