makersacademy / problem-solving

For problem-solving during the PreCourse
6 stars 2 forks source link

Argument Error in ruby-kickstart 2:11 #115

Closed haletothewood closed 7 years ago

haletothewood commented 7 years ago

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

haletothewood commented 7 years ago

Sorted.