From 6803d490ed7a964ee0ab99b44ec6424f29ee6edb Mon Sep 17 00:00:00 2001 From: Rachel Adler Date: Fri, 25 Nov 2016 09:41:40 -0500 Subject: [PATCH] bob:add bookkeeping --- exercises/bob/bob_test.rb | 21 +++++++++++++++++++++ exercises/bob/example.rb | 4 ++++ 2 files changed, 25 insertions(+) diff --git a/exercises/bob/bob_test.rb b/exercises/bob/bob_test.rb index f7db57fff3..ccf565b406 100755 --- a/exercises/bob/bob_test.rb +++ b/exercises/bob/bob_test.rb @@ -132,4 +132,25 @@ def test_on_multiple_line_questions no) assert_equal 'Whatever.', bob.hey(remark), feedback(remark) end + + # Problems in exercism evolve over time, as we find better ways to ask + # questions. + # The version number refers to the version of the problem you solved, + # not your solution. + # + # Define a constant named VERSION inside of the top level BookKeeping + # module. + # In your file, it will look like this: + # + # module BookKeeping + # VERSION = 1 # Where the version number matches the one in the test. + # end + # + # If you are curious, read more about constants on RubyDoc: + # http://ruby-doc.org/docs/ruby-doc-bundle/UsersGuide/rg/constants.html + + def test_bookkeeping + skip + assert_equal 1, BookKeeping::VERSION + end end diff --git a/exercises/bob/example.rb b/exercises/bob/example.rb index fde2d874c0..b92e835eeb 100644 --- a/exercises/bob/example.rb +++ b/exercises/bob/example.rb @@ -1,3 +1,7 @@ +module BookKeeping + VERSION = 1 +end + module Bob def hey(drivel) answer Phrase.new(drivel)