Skip to content

Instantly share code, notes, and snippets.

@hackjoy
Last active August 29, 2015 14:05
Show Gist options
  • Select an option

  • Save hackjoy/bbb756bffa35b8afae08 to your computer and use it in GitHub Desktop.

Select an option

Save hackjoy/bbb756bffa35b8afae08 to your computer and use it in GitHub Desktop.
bottles_test_3.rb
# ... previous setup and tests not shown for brevity ...
def test_a_couple_verses
expected = <<-VERSES
99 bottles of beer on the wall, 99 bottles of beer.
Take one down and pass it around, 98 bottles of beer on the wall.
98 bottles of beer on the wall, 98 bottles of beer.
Take one down and pass it around, 97 bottles of beer on the wall.
VERSES
assert_equal expected, bottles.verses(99, 98)
end
# skipped tests not shown for brevity
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment