datafile 0.2.5 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,36 +0,0 @@
1
- # encoding: utf-8
2
-
3
- ###
4
- # to run use
5
- # ruby -I ./lib -I ./test test/test_builder2.rb
6
-
7
-
8
- require 'helper'
9
-
10
- def recalc_standings( *args )
11
- puts "[eval] self in method recal_standings = #{self.class.name}"
12
- puts "hello from (global) recalc_standings"
13
- end
14
-
15
-
16
- class TestBuilder2 < MiniTest::Test
17
-
18
- def test_builder
19
-
20
- builder = Datafile::BuilderEx.load_file( "#{Datafile.root}/test/datafile2/at.rb" )
21
-
22
- registry = Datafile::FileDataset.registry
23
- registry.merge( openfootball: '../../openfootball' )
24
-
25
- datafiles = builder.datafiles
26
- datafiles.each do |datafile|
27
- puts "=== datafile '#{datafile.name}' => #{datafile.deps.inspect}:"
28
- puts " #{datafile.datasets.size} datasets, #{datafile.scripts.size} scripts"
29
- datafile.dump
30
- datafile.calc ## try calc (call dummy calculations for testing)
31
- end
32
-
33
- assert true # if we get here - test success
34
- end
35
-
36
- end # class TestBuilder2