Created
August 18, 2014 21:08
-
-
Save hackjoy/53ece1ac952d7e465d92 to your computer and use it in GitHub Desktop.
bottles_test_4.rb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ... 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