Ruby How Can I Test This Method Rspec Stack Overflow

Ruby How Can I Test This Method Rspec Stack Overflow