Skip to content

Instantly share code, notes, and snippets.

@hackjoy
Created August 18, 2014 21:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hackjoy/53ece1ac952d7e465d92 to your computer and use it in GitHub Desktop.
Save hackjoy/53ece1ac952d7e465d92 to your computer and use it in GitHub Desktop.
bottles_test_4.rb
# ... previous setup and tests not shown for brevity ...
def test_a_few_verses
expected = <<-VERSES
2 bottles of beer on the wall, 2 bottles of beer.
Take one down and pass it around, 1 bottle of beer on the wall.
1 bottle of beer on the wall, 1 bottle of beer.
Take it down and pass it around, no more bottles of beer on the wall.
No more bottles of beer on the wall, no more bottles of beer.
Go to the store and buy some more, 99 bottles of beer on the wall.
VERSES
assert_equal expected, bottles.verses(2, 0)
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