This is the error message I keep getting from rspec:
BeerSong prints nothing when there is no beerFailure/Error: output = input_output { BeerSong.new(0).print_song }.chomp ArgumentError: wrong number of arguments (1 for 0)
I really can't work out why.
This is my print_song function:
def print_song
--num.downto 1 do |i|
----stanza(i)
--endend
This is the error message I keep getting from rspec:
BeerSong prints nothing when there is no beer
Failure/Error: output = input_output { BeerSong.new(0).print_song }.chomp ArgumentError: wrong number of arguments (1 for 0)
I really can't work out why.
This is my print_song function:
def print_song
--num.downto 1 do |i|
----stanza(i)
--end
end
Can anyone shed any light?
My full code as it is now has been committed to my github if you want to see it. https://github.com/haletothewood/ruby-kickstart/blob/master/session2/challenge/11_classes.rb