Sha256: 28683c2c4493c6036aeadf7b8a97a1837bf680206eaff4d2f8cd6f9c289bc9c1

Contents?: true

Size: 830 Bytes

Versions: 11

Compression:

Stored size: 830 Bytes

Contents

# encoding: utf-8

###
#  to run use
#     ruby -I ./lib -I ./test test/test_datafile.rb



require 'helper'

class TestDatafile < MiniTest::Test


  def test_exclude
    assert Datafile::Package.match_exclude?( '.build/' )
    assert Datafile::Package.match_exclude?( '.git/' )
    assert Datafile::Package.exclude?( '.build/' )
    assert Datafile::Package.exclude?( '.git/' )


    assert Datafile::Package.match_exclude?( '/.build/' )
    assert Datafile::Package.match_exclude?( '/.git/' )

    assert Datafile::Package.match_exclude?( '.build/leagues.txt' )
    assert Datafile::Package.match_exclude?( '.git/leagues.txt' )

    assert Datafile::Package.match_exclude?( '/.build/leagues.txt' )
    assert Datafile::Package.match_exclude?( '/.git/leagues.txt' )
  end
end   # class TestDatafile

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
sportdb-formats-1.1.6 test/test_datafile.rb
sportdb-formats-1.1.5 test/test_datafile.rb
sportdb-formats-1.1.4 test/test_datafile.rb
sportdb-formats-1.1.3 test/test_datafile.rb
sportdb-formats-1.1.2 test/test_datafile.rb
sportdb-formats-1.1.1 test/test_datafile.rb
sportdb-formats-1.1.0 test/test_datafile.rb
sportdb-formats-1.0.6 test/test_datafile.rb
sportdb-formats-1.0.5 test/test_datafile.rb
sportdb-formats-1.0.4 test/test_datafile.rb
sportdb-formats-1.0.3 test/test_datafile.rb