Sha256: 5862988f5fcdf34356c54a6d0d1bd1677b7761b40e6683686e0947f870cd8c62
Contents?: true
Size: 581 Bytes
Versions: 2
Compression:
Stored size: 581 Bytes
Contents
require_relative 'minitest_helper' class TestCollectionIntegration < MiniTest::Unit::TestCase def setup @collection = Annal::Collection.new("#{Annal.project_root}/test") end def test_file_paths assert_operator @collection.file_paths.length, :>, 1 end def test_file_paths refute_includes @collection.file_paths, "#{Annal.project_root}/test/test-dir" end def test_documents assert_operator @collection.documents.length, :>, 1 end def test_glob assert_equal ["#{Annal.project_root}/test/test.yml"], @collection.file_paths('*.yml') end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
annal-0.0.3 | test/collection_integration_test.rb |
annal-0.0.2 | test/collection_integration_test.rb |