class CVNotesTest
Public Instance Methods
test_add()
click to toggle source
# File test/cvnotes_test.rb, line 5 def test_add() n = NoteManger.new n.add("sample", "note") result = n.show("sample") assert_equal(result, "note") end
test_list()
click to toggle source
# File test/cvnotes_test.rb, line 12 def test_list() n = NoteManger.new n.add("sample", "note") n.add("sample2", "note2") result = n.list assert_not_nil result['sample'] assert_not_nil result['note'] assert_not_nil result['sample2'] assert_not_nil result['note2'] end