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

Version Path
checkcheckit-0.5.0 test/list_test.rb
checkcheckit-0.4.0 test/list_test.rb
checkcheckit-0.3.1 test/list_test.rb
checkcheckit-0.3.0 test/list_test.rb
checkcheckit-0.2.1 test/list_test.rb
checkcheckit-0.2.0 test/list_test.rb
checkcheckit-0.1.4 test/list_test.rb
checkcheckit-0.1.3 test/list_test.rb
checkcheckit-0.1.2 test/list_test.rb
checkcheckit-0.1.1 test/list_test.rb
checkcheckit-0.1.0 test/list_test.rb
checkcheckit-0.0.6 test/list_test.rb
checkcheckit-0.0.5 test/list_test.rb
checkcheckit-0.0.4 test/list_test.rb