Sha256: 89e222dd558d64f08f4c20af24100f17a8e0bb58c40ac46fdbe8fda7043c9330

Contents?: true

Size: 676 Bytes

Versions: 19

Compression:

Stored size: 676 Bytes

Contents

Autotest.add_hook :initialize do |at|
  ignore = %w[ .git burn www log plugins script tasks bin CHANGELOG FAQ MIT-LICENSE PERFORMANCE QUICKLINKS README ]

  unless ENV['AUTOTEST'] == 'integration'
    ignore << 'spec/integration'
  end

  ignore.each do |exception|
    at.add_exception(exception)
  end

  at.clear_mappings

  at.add_mapping(%r{^spec/.+_spec\.rb$}) do |filename,_|
    filename
  end

  at.add_mapping(%r{^lib/data_mapper/(.+)\.rb$}) do |_,match|
    [ "spec/unit/#{match[1]}_spec.rb" ] +
    at.files_matching(%r{^spec/integration/.+_spec\.rb$})
  end

  at.add_mapping(%r{^spec/spec_helper\.rb$}) do
    at.files_matching(%r{^spec/.+_spec\.rb$})
  end
end

Version data entries

19 entries across 19 versions & 5 rubygems

Version Path
datamapper-dm-core-0.9.11 .autotest
joevandyk-dm-core-0.9.6 .autotest
rpbertp13-dm-core-0.9.11.1 .autotest
rpbertp13-dm-core-0.9.11.2 .autotest
sam-dm-core-0.9.10 .autotest
sam-dm-core-0.9.11 .autotest
sam-dm-core-0.9.6 .autotest
sam-dm-core-0.9.7 .autotest
sam-dm-core-0.9.8 .autotest
sam-dm-core-0.9.9 .autotest
dm-core-0.9.10 .autotest
dm-core-0.9.11 .autotest
dm-core-0.9.5 .autotest
dm-core-0.9.6 .autotest
dm-core-0.9.4 .autotest
dm-core-0.9.3 .autotest
dm-core-0.9.7 .autotest
dm-core-0.9.9 .autotest
dm-core-0.9.8 .autotest