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/edf99678e8e1a99ac495 to your computer and use it in GitHub Desktop.

Select an option

Save hackjoy/edf99678e8e1a99ac495 to your computer and use it in GitHub Desktop.
bottles test 1
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