Various Ruby methods tested using Rspec