Remove rspec #stub! calls to eliminate deprecation notices.