Facets(1.6.20)

後で見る。

事前作業

Rakefile に TestTask を追加。

desc 'run test'
Rake::TestTask.new do |t|
  t.libs << 'lib'
  t.test_files = FileList['test/lib/facets/**/test_*.rb']
end

おもむろに実行。

date@assam facets-1.4.5 $ /usr/local/yarv/bin/rake test
(in /home/date/tmp/facets-1.4.5)
Loaded suite /usr/local/yarv/lib/ruby/gems/2.0/gems/rake-0.7.1/lib/rake/rake_test_loader
Started
....................................EEE.......EE.EE.........................
Finished in 5.083774 seconds.

  1) Error:
test_006(TCBasicObject):
NameError: undefined method `yyy' for class `BasicObject'
    /home/date/tmp/facets-1.4.5/lib/facets/more/basicobject.rb:138:in `undef_method'
    /home/date/tmp/facets-1.4.5/lib/facets/more/basicobject.rb:138:in `hide'
    /home/date/tmp/facets-1.4.5/lib/facets/more/basicobject.rb:188:in `block in singletonclass'
    ./test/lib/facets/more/test_basicobject.rb:55:in `block in test_006'
    ./test/lib/facets/more/test_basicobject.rb:55:in `new'
    ./test/lib/facets/more/test_basicobject.rb:55:in `class_eval'
    ./test/lib/facets/more/test_basicobject.rb:55:in `test_006'

  2) Error:
test_007(TCBasicObject):
NameError: undefined method `yyy' for class `BasicObject'
    /home/date/tmp/facets-1.4.5/lib/facets/more/basicobject.rb:138:in `undef_method'
    /home/date/tmp/facets-1.4.5/lib/facets/more/basicobject.rb:138:in `hide'
    /home/date/tmp/facets-1.4.5/lib/facets/more/basicobject.rb:188:in `block in singletonclass'
    ./test/lib/facets/more/test_basicobject.rb:60:in `block in test_007'
    ./test/lib/facets/more/test_basicobject.rb:60:in `size'
    ./test/lib/facets/more/test_basicobject.rb:60:in `class_eval'
    ./test/lib/facets/more/test_basicobject.rb:60:in `test_007'

  3) Error:
test_01(TCHTMLBuilder):
NoMethodError: private method `binding' called for #<YARVCore::VM::Proc:0x2aff9fcc>
    /home/date/tmp/facets-1.4.5/lib/facets/more/functor.rb:46:in `initialize'
    /home/date/tmp/facets-1.4.5/lib/facets/more/builderobject.rb:68:in `new'
    /home/date/tmp/facets-1.4.5/lib/facets/more/builderobject.rb:68:in `out'
    ./test/lib/facets/more/test_htmlbuilder.rb:28:in `block (2 levels) in test_01'
    /home/date/tmp/facets-1.4.5/lib/facets/more/htmlbuilder.rb:39:in `call'
    /home/date/tmp/facets-1.4.5/lib/facets/more/htmlbuilder.rb:39:in `method_missing'
    ./test/lib/facets/more/test_htmlbuilder.rb:26:in `=='
    ./test/lib/facets/more/test_htmlbuilder.rb:26:in `block in test_01'
    /home/date/tmp/facets-1.4.5/lib/facets/more/htmlbuilder.rb:39:in `call'
    /home/date/tmp/facets-1.4.5/lib/facets/more/htmlbuilder.rb:39:in `method_missing'
    ./test/lib/facets/more/test_htmlbuilder.rb:22:in `new'
    ./test/lib/facets/more/test_htmlbuilder.rb:22:in `test_01'

  4) Error:
test_01(TC_ClassMethods):
NoMethodError: undefined method `n' for TC_ClassMethods::N:Module
    ./test/lib/facets/more/test_classmethods.rb:48:in `test_01'

  5) Error:
test_02(TC_ClassMethods):
NoMethodError: undefined method `n' for TC_ClassMethods::X:Class
    ./test/lib/facets/more/test_classmethods.rb:52:in `test_02'

  6) Error:
test_04(TC_ClassMethods):
NoMethodError: undefined method `n' for TC_ClassMethods::K:Module
    ./test/lib/facets/more/test_classmethods.rb:59:in `test_04'

  7) Error:
test_05(TC_ClassMethods):
NoMethodError: undefined method `n' for TC_ClassMethods::Z:Class
    ./test/lib/facets/more/test_classmethods.rb:63:in `test_05'

76 tests, 218 assertions, 0 failures, 7 errors
/usr/local/yarv/lib/ruby/2.0/yaml.rb:143:in `open': No such file or directory - /usr/local/yarv/share/facets/units/standard.yaml (Errno::ENOENT)
        from /usr/local/yarv/lib/ruby/2.0/yaml.rb:143:in `load_file'
        from /home/date/tmp/facets-1.4.5/lib/facets/more/units.rb:810:in `<class:Converter>'
        from /home/date/tmp/facets-1.4.5/lib/facets/more/units.rb:809:in `<module:Units>'
        from /home/date/tmp/facets-1.4.5/lib/facets/more/units.rb:55:in `<top (required)>'
        from ./test/lib/facets/more/test_units.rb:13:in `require'
        from ./test/lib/facets/more/test_units.rb:13:in `<top (required)>'
        from /usr/local/yarv/lib/ruby/gems/2.0/gems/rake-0.7.1/lib/rake/rake_test_loader.rb:5:in `load'
        from /usr/local/yarv/lib/ruby/gems/2.0/gems/rake-0.7.1/lib/rake/rake_test_loader.rb:5:in `block in <main>'
        from /usr/local/yarv/lib/ruby/gems/2.0/gems/rake-0.7.1/lib/rake/rake_test_loader.rb:5:in `each'
        from /usr/local/yarv/lib/ruby/gems/2.0/gems/rake-0.7.1/lib/rake/rake_test_loader.rb:5:in `<main>'
rake aborted!
Command failed with status (1): [/usr/local/yarv/bin/ruby-yarv -Ilib:lib "/...]

(See full trace by running task with --trace)