Sha256: 33690da11fa26f1cbb4cb0d08c4828e325f9d9fba34642a9b4f7e6fdaa06d8d3
Contents?: true
Size: 552 Bytes
Versions: 14
Compression:
Stored size: 552 Bytes
Contents
require 'helper' class ListTest < CheckCheckIt::TestCase def setup super Examples.create_grocery_list(home) @list = List.new('~/checkcheckit/personal/groceries') end def test_list_parses_steps @list.steps.size.must_equal 3 end def test_to_json @list.to_h.must_equal({ name: 'groceries', steps: [ { name: 'pineapple', body: '' }, { name: 'mangoes', body: " enhance the flavor with \n spice\n" }, { name: 'fudge', body: ' best from a place in sutter creek'} ] }) end end
Version data entries
14 entries across 14 versions & 1 rubygems