Last active
August 29, 2015 14:05
-
-
Save hackjoy/edf99678e8e1a99ac495 to your computer and use it in GitHub Desktop.
bottles test 1
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
| require_relative '../../test_helper' | |
| require_relative '../lib/bottles' | |
| class BottlesTest < Minitest::Test | |
| attr_reader :bottles | |
| def setup | |
| @bottles = ::Bottles.new | |
| end | |
| def test_the_first_verse | |
| expected = <<-VERSE | |
| 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. | |
| VERSE | |
| assert_equal expected, bottles.verse(99) | |
| end | |
| # ... skipped tests not shown for brevity ... | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment