Sha256: bee693674a44e181b6bed44b4d69dcf06a628103bb99a36c956d1fb02eac70d0
Contents?: true
Size: 662 Bytes
Versions: 1
Compression:
Stored size: 662 Bytes
Contents
require_relative 'minitest_helper' class TestCollectionIntegration < MiniTest::Unit::TestCase def collection @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 glob_collection = Annal::Collection.new("#{Annal.project_root}/test/*.yml") assert_equal ["#{Annal.project_root}/test/test.yml"], glob_collection.file_paths end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
annal-0.0.4 | test/collection_integration_test.rb |