Ad
  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Default User Avatar

    My code fails a test under the heading "Totenham should now have 4 goals for":

    Nope! -  Expected: 3, instead got: 4
    

    right after the test

    Test Passed: Value == 4
    

    What is this second test supposed to check? Is the heading maybe missing some information as it seems to check something more than just how many goals Totenham has? The stderr log just gives

    /runner/frameworks/ruby/cw-2.rb:60:in `block in describe': Nope! -  Expected: 3, instead got: 4 (Test::Error)
    	from /runner/frameworks/ruby/cw-2.rb:46:in `measure'
    	from /runner/frameworks/ruby/cw-2.rb:51:in `describe'
    	from /runner/frameworks/ruby/cw-2.rb:202:in `describe'
    	from main.rb:131:in `block in <main>'
    	from /runner/frameworks/ruby/cw-2.rb:55:in `block in describe'
    	from /runner/frameworks/ruby/cw-2.rb:46:in `measure'
    	from /runner/frameworks/ruby/cw-2.rb:51:in `describe'
    	from /runner/frameworks/ruby/cw-2.rb:202:in `describe'
    	from main.rb:91:in `<main>'