view · edit · sidebar · attach · print · history

20110225-testcases-oddb_org

<< | Index | >>


  1. Review last week
  2. Remove errors
  3. Set UTF-8 in vim

Goal/Estimate
  • test-cases test_state, test_view oddb.org / 70%
Milestones
Summary
Commits

Review last week

Problem

  • Test-cases in the sub-directories of test_state and test_view are not called from suite.rb
  • There are many errors in the test-cases

Cause

  • There is no file list in test_state/suite.rb and test_view/suite.rb

The current status

masa@masa ~/ywesee/oddb.org/test/test_state/admin $ ls
companyuser.rb  login.rb  patinfo_stats.rb  root.rb

masa@masa ~/ywesee/oddb.org/test/test_state/admin $ ruby companyuser.rb
...
Finished in 0.000732 seconds.

  1) Error:
test_logout(ODDB::State::Admin::TestCompanyUserState):
NoMethodError: undefined method `login' for #<ODDB::State::Admin::TestCompanyUserState::StubSession:0x7f7c48334980>
    /home/masa/ywesee/oddb.org/src/state/admin/login.rb:14:in `login'
    /usr/lib64/ruby/site_ruby/1.8/sbsm/state.rb:221:in `send'
    /usr/lib64/ruby/site_ruby/1.8/sbsm/state.rb:221:in `_trigger'
    /home/masa/ywesee/oddb.org/src/state/global.rb:643:in `_trigger'
    /usr/lib64/ruby/site_ruby/1.8/sbsm/state.rb:210:in `trigger'
    /usr/lib64/ruby/site_ruby/1.8/sbsm/viralstate.rb:35:in `trigger'
    companyuser.rb:47:in `test_logout'

  2) Error:
test_new_registration(ODDB::State::Admin::TestCompanyUserState):
NoMethodError: undefined method `name' for "user_model":String
    /home/masa/ywesee/oddb.org/src/state/admin/companyuser.rb:81:in `new_registration'
    companyuser.rb:51:in `test_new_registration'

4 tests, 5 assertions, 0 failures, 2 errors

masa@masa ~/ywesee/oddb.org/test/test_state/admin $ ruby login.rb
...
  1) Error:
test_transparent_login(ODDB::State::Admin::TestTransparentLoginState):
NoMethodError: undefined method `select_one' for nil:NilClass
    /usr/lib64/ruby/site_ruby/1.8/odba/storage.rb:605:in `restore_max_id'
    /usr/lib64/ruby/site_ruby/1.8/odba/storage.rb:601:in `ensure_next_id_set'
    /usr/lib64/ruby/site_ruby/1.8/odba/storage.rb:375:in `next_id'
    /usr/lib64/ruby/site_ruby/1.8/odba/storage.rb:374:in `synchronize'
    /usr/lib64/ruby/site_ruby/1.8/odba/storage.rb:374:in `next_id'
    /usr/lib64/ruby/site_ruby/1.8/odba/cache.rb:387:in `next_id'
    /usr/lib64/ruby/site_ruby/1.8/odba/persistable.rb:259:in `odba_id'
    /home/masa/ywesee/oddb.org/src/util/persistence.rb:95:in `set_oid'
    /home/masa/ywesee/oddb.org/src/util/persistence.rb:106:in `initialize'
    login.rb:60:in `new'
    login.rb:60:in `test_transparent_login'

1 tests, 0 assertions, 0 failures, 1 errors

masa@masa ~/ywesee/oddb.org/test/test_state/admin $ ruby patinfo_stats.rb 
Loaded suite patinfo_stats
Started
................
Finished in 0.028169 seconds.

16 tests, 17 assertions, 0 failures, 0 errors

masa@masa ~/ywesee/oddb.org/test/test_state/admin $ ruby root.rb
...
  1) Error:
test_root_state(ODDB::State::Admin::TestRootState):
NoMethodError: undefined method `request_path' for #<ODDB::State::Admin::TestRootState::StubSession:0x7f87481aa898>
    /home/masa/ywesee/oddb.org/src/state/global.rb:464:in `resolve'
    /usr/lib64/ruby/site_ruby/1.8/sbsm/state.rb:221:in `send'
    /usr/lib64/ruby/site_ruby/1.8/sbsm/state.rb:221:in `_trigger'
    /home/masa/ywesee/oddb.org/src/state/global.rb:643:in `_trigger'
    /usr/lib64/ruby/site_ruby/1.8/sbsm/state.rb:210:in `trigger'
    /usr/lib64/ruby/site_ruby/1.8/sbsm/viralstate.rb:35:in `trigger'
    root.rb:91:in `test_root_state'

3 tests, 6 assertions, 0 failures, 1 errors

masa@masa ~/ywesee/oddb.org/test/test_state/companies $ ls
companylist.rb  company.rb  mergecompanies.rb

masa@masa ~/ywesee/oddb.org/test/test_state/companies $ ruby companylist.rb
...
/home/masa/ywesee/oddb.org/src/state/companies/global.rb:15: uninitialized constant ODDB::State::Companies::CompanyList (NameError)
        from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
        from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
        from /home/masa/ywesee/oddb.org/src/state/companies/companylist.rb:4
        from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
        from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
        from companylist.rb:8

masa@masa ~/ywesee/oddb.org/test/test_state/companies $ ruby company.rb
...
  1) Error:
test_update1(ODDB::State::Companies::TestRootCompanyState):
NoMethodError: undefined method `contact_email' for #<ODDB::State::Companies::TestRootCompanyState::StubCompany:0x7f427d695048>
    /home/masa/ywesee/oddb.org/src/state/companies/company.rb:198:in `validate'
    /home/masa/ywesee/oddb.org/src/state/companies/company.rb:59:in `do_update'
    /home/masa/ywesee/oddb.org/src/state/companies/company.rb:194:in `update'
    company.rb:73:in `test_update1'

  2) Error:
test_update2(ODDB::State::Companies::TestRootCompanyState):
NoMethodError: undefined method `contact_email' for #<ODDB::State::Companies::TestRootCompanyState::StubCompany:0x7f427d693ae0>
    /home/masa/ywesee/oddb.org/src/state/companies/company.rb:198:in `validate'
    /home/masa/ywesee/oddb.org/src/state/companies/company.rb:59:in `do_update'
    /home/masa/ywesee/oddb.org/src/state/companies/company.rb:194:in `update'
    company.rb:95:in `test_update2'

  3) Error:
test_update3(ODDB::State::Companies::TestRootCompanyState):
NoMethodError: undefined method `contact_email' for #<ODDB::State::Companies::TestRootCompanyState::StubCompany:0x7f427d692578>
    /home/masa/ywesee/oddb.org/src/state/companies/company.rb:198:in `validate'
    /home/masa/ywesee/oddb.org/src/state/companies/company.rb:59:in `do_update'
    /home/masa/ywesee/oddb.org/src/state/companies/company.rb:194:in `update'
    company.rb:117:in `test_update3'

  4) Error:
test_update_no_name(ODDB::State::Companies::TestRootCompanyState):
NoMethodError: undefined method `contact_email' for #<ODDB::State::Companies::TestRootCompanyState::StubCompany:0x7f427d690fe8>
    /home/masa/ywesee/oddb.org/src/state/companies/company.rb:198:in `validate'
    /home/masa/ywesee/oddb.org/src/state/companies/company.rb:59:in `do_update'
    /home/masa/ywesee/oddb.org/src/state/companies/company.rb:194:in `update'
    company.rb:69:in `test_update_no_name'

  5) Error:
test_update1(ODDB::State::Companies::TestUserCompanyState):
NoMethodError: undefined method `to_yus_privilege' for "bar":String
    /home/masa/ywesee/oddb.org/src/state/companies/company.rb:31:in `update'
    company.rb:178:in `test_update1'

  6) Error:
test_update2(ODDB::State::Companies::TestUserCompanyState):
NoMethodError: undefined method `to_yus_privilege' for "bar":String
    /home/masa/ywesee/oddb.org/src/state/companies/company.rb:31:in `update'
    company.rb:200:in `test_update2'

  7) Error:
test_update3(ODDB::State::Companies::TestUserCompanyState):
NoMethodError: undefined method `to_yus_privilege' for "bar":String
    /home/masa/ywesee/oddb.org/src/state/companies/company.rb:31:in `update'
    company.rb:228:in `test_update3'

7 tests, 0 assertions, 0 failures, 7 errors

masa@masa ~/ywesee/oddb.org/test/test_state/companies $ ruby mergecompanies.rb 
...
Finished in 0.00049 seconds.

3 tests, 8 assertions, 0 failures, 0 errors

masa@masa ~/ywesee/oddb.org/test/test_state/drugs $ ls
activeagent.rb  fachinfoconfirm.rb  galenicform.rb  galenicgroup.rb  incompleteregistrations.rb  init.rb  mergegalenicform.rb  register_download.rb  result.rb

masa@masa ~/ywesee/oddb.org/test/test_state/drugs $ ruby activeagent.rb 
/usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- state/drugs/activeagent (LoadError)
        from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
        from activeagent.rb:8

masa@masa ~/ywesee/oddb.org/test/test_state/drugs $ ruby fachinfoconfirm.rb 
/usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- state/drugs/fachinfoconfirm (LoadError)
        from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
        from fachinfoconfirm.rb:8

masa@masa ~/ywesee/oddb.org/test/test_state/drugs $ ruby galenicform.rb 
/usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- state/drugs/galenicform (LoadError)
        from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
        from galenicform.rb:8

masa@masa ~/ywesee/oddb.org/test/test_state/drugs $ ruby galenicgroup.rb 
/usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- state/drugs/galenicgroup (LoadError)
        from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
        from galenicgroup.rb:8

masa@masa ~/ywesee/oddb.org/test/test_state/drugs $ ruby incompleteregistrations.rb 
/home/masa/ywesee/oddb.org/src/view/drugs/resultlist.rb:21: warning: already initialized constant BACKGROUND_SUFFIX
/home/masa/ywesee/oddb.org/src/view/drugs/register_download.rb:38: uninitialized constant HtmlGrid::Pass (NameError)
        from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
        from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
        from /home/masa/ywesee/oddb.org/src/state/drugs/register_download.rb:6
        from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
        from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
        from /home/masa/ywesee/oddb.org/src/state/drugs/result.rb:6
        from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
        from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
         ... 33 levels...
        from /home/masa/ywesee/oddb.org/src/state/drugs/global.rb:8
        from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
        from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
        from incompleteregistrations.rb:11

masa@masa ~/ywesee/oddb.org/test/test_state/drugs $ ruby init.rb 
Loaded suite init
Started
F.E.EF
Finished in 0.00166 seconds.

  1) Failure:
test_compare_entries(ODDB::State::Drugs::TestInitState) [init.rb:152]:
<0> expected but was
<-1>.

  2) Error:
test_init_state(ODDB::State::Drugs::TestInitState):
NameError: uninitialized constant ODDB::View::Search
    init.rb:105:in `test_init_state'

  3) Error:
test_trigger_global(ODDB::State::Drugs::TestInitState):
NameError: uninitialized constant ODDB::State::Admin::Login
    init.rb:109:in `test_trigger_global'

  4) Failure:
test_trigger_resolve(ODDB::State::Drugs::TestInitState) [init.rb:116]:
<ODDB::State::Drugs::StubResolvedState> expected but was
<ODDB::State::Drugs::Init>.

6 tests, 21 assertions, 2 failures, 2 errors

masa@masa ~/ywesee/oddb.org/test/test_state/drugs $ ruby mergegalenicform.rb 
...

  1) Error:
test_no_target(ODDB::State::Drugs::TestMergeGalenicFormState):
NameError: uninitialized constant ODDB::State::Drugs::MergeGalenicForm
    mergegalenicform.rb:53:in `setup'

  2) Error:
test_same_target(ODDB::State::Drugs::TestMergeGalenicFormState):
NameError: uninitialized constant ODDB::State::Drugs::MergeGalenicForm
    mergegalenicform.rb:53:in `setup'

  3) Error:
test_target(ODDB::State::Drugs::TestMergeGalenicFormState):
NameError: uninitialized constant ODDB::State::Drugs::MergeGalenicForm
    mergegalenicform.rb:53:in `setup'

  4) Error:
test_empty_list(ODDB::State::Drugs::TestResult):
NameError: uninitialized constant ODDB::State::Drugs::TestResult::Mock
    ./result.rb:95:in `test_empty_list'

  5) Error:
test_filter(ODDB::State::Drugs::TestResult):
NameError: uninitialized constant ODDB::State::Drugs::TestResult::Mock
    ./result.rb:107:in `test_filter'

  6) Error:
test_page(ODDB::State::Drugs::TestResult):
NameError: uninitialized constant ODDB::State::Drugs::TestResult::Mock
    ./result.rb:126:in `test_page'

6 tests, 0 assertions, 0 failures, 6 errors

masa@masa ~/ywesee/oddb.org/test/test_state/drugs $ ruby register_download.rb 
/home/masa/ywesee/oddb.org/src/view/drugs/payment_method.rb:11: uninitialized constant HtmlGrid::ErrorMessage (NameError)
        from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
        from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
        from /home/masa/ywesee/oddb.org/src/state/drugs/payment_method.rb:6
        from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
        from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
        from /home/masa/ywesee/oddb.org/src/state/drugs/result.rb:7
        from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
        from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
         ... 30 levels...
        from /home/masa/ywesee/oddb.org/src/state/drugs/register_download.rb:5
        from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
        from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
        from register_download.rb:7

masa@masa ~/ywesee/oddb.org/test/test_state/drugs $ ruby result.rb 
./result.rb:17:in `public': undefined method `page' for class `ODDB::State::Drugs::Result' (NameError)
        from ./result.rb:17
        from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
        from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
        from /home/masa/ywesee/oddb.org/ext/meddata/src/meddata.rb:9
        from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
        from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
        from /home/masa/ywesee/oddb.org/src/plugin/hospitals.rb:11
        from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
         ... 25 levels...
        from /home/masa/ywesee/oddb.org/src/state/drugs/result.rb:6
        from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
        from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
        from result.rb:8

masa@masa ~/ywesee/oddb.org/test/test_state/interactions $ ls
basket.rb  result.rb

masa@masa ~/ywesee/oddb.org/test/test_state/interactions $ ruby basket.rb 
/usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- mock (LoadError)
        from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
        from basket.rb:9

masa@masa ~/ywesee/oddb.org/test/test_state/interactions $ ruby result.rb 
/home/masa/ywesee/oddb.org/src/view/interactions/result.rb:57: uninitialized constant ODDB::View::ResultTemplate (NameError)
        from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
        from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
        from /home/masa/ywesee/oddb.org/src/state/interactions/result.rb:4
        from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
        from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
        from result.rb:8

masa@masa ~/ywesee/oddb.org/test/test_state/paypal $ ls
ipn.rb

masa@masa ~/ywesee/oddb.org/test/test_state/paypal $ ruby ipn.rb 
Loaded suite ipn
Started
E
Finished in 0.000607 seconds.

  1) Error:
test_format_invoice(ODDB::State::PayPal::TestIpn):
NoMethodError: undefined method `format_invoice' for #<ODDB::State::PayPal::Ipn:0x7fd6050b4ea0>
    ipn.rb:39:in `test_format_invoice'

1 tests, 0 assertions, 0 failures, 1 errors

masa@masa ~/ywesee/oddb.org/test/test_state/substances $ ls
substance.rb

masa@masa ~/ywesee/oddb.org/test/test_state/substances $ ruby substance.rb 
...
  1) Error:
test_delete(ODDB::State::Substances::TestSubstanceState):
NameError: uninitialized constant ODDB::State::Substances::TestSubstanceState::Mock
    substance.rb:18:in `setup'

  2) Error:
test_delete(ODDB::State::Substances::TestSubstanceState):
NoMethodError: undefined method `__verify' for nil:NilClass
    substance.rb:24:in `teardown'

  3) Error:
test_delete2(ODDB::State::Substances::TestSubstanceState):
NameError: uninitialized constant ODDB::State::Substances::TestSubstanceState::Mock
    substance.rb:18:in `setup'

  4) Error:
test_delete2(ODDB::State::Substances::TestSubstanceState):
NoMethodError: undefined method `__verify' for nil:NilClass
    substance.rb:24:in `teardown'

  5) Error:
test_merge(ODDB::State::Substances::TestSubstanceState):
NameError: uninitialized constant ODDB::State::Substances::TestSubstanceState::Mock
    substance.rb:18:in `setup'

  6) Error:
test_merge(ODDB::State::Substances::TestSubstanceState):
NoMethodError: undefined method `__verify' for nil:NilClass
    substance.rb:24:in `teardown'

  7) Error:
test_merge2(ODDB::State::Substances::TestSubstanceState):
NameError: uninitialized constant ODDB::State::Substances::TestSubstanceState::Mock
    substance.rb:18:in `setup'

  8) Error:
test_merge2(ODDB::State::Substances::TestSubstanceState):
NoMethodError: undefined method `__verify' for nil:NilClass
    substance.rb:24:in `teardown'

  9) Error:
test_merge3(ODDB::State::Substances::TestSubstanceState):
NameError: uninitialized constant ODDB::State::Substances::TestSubstanceState::Mock
    substance.rb:18:in `setup'

 10) Error:
test_merge3(ODDB::State::Substances::TestSubstanceState):
NoMethodError: undefined method `__verify' for nil:NilClass
    substance.rb:24:in `teardown'

 11) Error:
test_update(ODDB::State::Substances::TestSubstanceState):
NameError: uninitialized constant ODDB::State::Substances::TestSubstanceState::Mock
    substance.rb:18:in `setup'

 12) Error:
test_update(ODDB::State::Substances::TestSubstanceState):
NoMethodError: undefined method `__verify' for nil:NilClass
    substance.rb:24:in `teardown'

 13) Error:
test_update2(ODDB::State::Substances::TestSubstanceState):
NameError: uninitialized constant ODDB::State::Substances::TestSubstanceState::Mock
    substance.rb:18:in `setup'

 14) Error:
test_update2(ODDB::State::Substances::TestSubstanceState):
NoMethodError: undefined method `__verify' for nil:NilClass
    substance.rb:24:in `teardown'

7 tests, 0 assertions, 0 failures, 14 errors

masa@masa ~/ywesee/oddb.org/test/test_state/user $ ls
define_empty_class_download_export.rb  download_export.rb  fipi_offer_input.rb


masa@masa ~/ywesee/oddb.org/test/test_state/user $ ruby download_export.rb 
Loaded suite download_export
Started
.
Finished in 0.000335 seconds.

1 tests, 10 assertions, 0 failures, 0 errors

masa@masa ~/ywesee/oddb.org/test/test_state/user $ ruby fipi_offer_input.rb 
Loaded suite fipi_offer_input
Started
E...E.E
Finished in 0.000703 seconds.

  1) Error:
test_calculate_activation_charge(ODDB::State::User::TestFiPiOffer):
NoMethodError: undefined method `calculate_activation_charge' for #<ODDB::State::User::FiPiOfferInput::FiPiOffer:0x7f29ad67e7a0>
    fipi_offer_input.rb:58:in `test_calculate_activation_charge'

  2) Error:
test_fi_update_charge(ODDB::State::User::TestFiPiOffer):
NameError: uninitialized constant ODDB::State::User::FiPiOfferInput::FiPiOffer::FI_UPDATE
    fipi_offer_input.rb:46:in `test_fi_update_charge'

  3) Error:
test_pi_update_charge(ODDB::State::User::TestFiPiOffer):
NameError: uninitialized constant ODDB::State::User::FiPiOfferInput::FiPiOffer::FI_UPDATE
    fipi_offer_input.rb:53:in `test_pi_update_charge'

7 tests, 20 assertions, 0 failures, 3 errors

masa@masa ~/ywesee/oddb.org/test/test_view/companies $ ls
companylist.rb
masa@masa ~/ywesee/oddb.org/test/test_view/companies $ ruby companylist.rb 
Loaded suite companylist
Started
E
Finished in 0.000503 seconds.

  1) Error:
test_no_double_sort(ODDB::View::Companies::TestCompanyList):
NoMethodError: undefined method `_event_url' for #<ODDB::View::Companies::TestCompanyList::StubSession:0x7f7a616d3d90>
    /home/masa/ywesee/oddb.org/src/view/pointervalue.rb:29:in `init'
    /usr/lib64/ruby/site_ruby/1.8/htmlgrid/component.rb:138:in `initialize'
    /usr/lib64/ruby/site_ruby/1.8/htmlgrid/namedcomponent.rb:34:in `initialize'
    /home/masa/ywesee/oddb.org/src/view/companies/companylist.rb:56:in `new'
    /home/masa/ywesee/oddb.org/src/view/companies/companylist.rb:56:in `name'
    /usr/lib64/ruby/site_ruby/1.8/htmlgrid/composite.rb:66:in `send'
    /usr/lib64/ruby/site_ruby/1.8/htmlgrid/composite.rb:66:in `create'
    /usr/lib64/ruby/site_ruby/1.8/htmlgrid/composite.rb:286:in `compose_component'
    /usr/lib64/ruby/site_ruby/1.8/htmlgrid/composite.rb:209:in `_compose'
    /usr/lib64/ruby/site_ruby/1.8/htmlgrid/composite.rb:203:in `each'
    /usr/lib64/ruby/site_ruby/1.8/htmlgrid/composite.rb:203:in `_compose'
    /usr/lib64/ruby/site_ruby/1.8/htmlgrid/list.rb:67:in `compose_list'
    /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `each_with_index'
    /usr/lib64/ruby/site_ruby/1.8/htmlgrid/list.rb:65:in `each'
    /usr/lib64/ruby/site_ruby/1.8/htmlgrid/list.rb:65:in `each_with_index'
    /usr/lib64/ruby/site_ruby/1.8/htmlgrid/list.rb:65:in `compose_list'
    /usr/lib64/ruby/site_ruby/1.8/htmlgrid/list.rb:54:in `compose'
    /usr/lib64/ruby/site_ruby/1.8/htmlgrid/composite.rb:55:in `init'
    /usr/lib64/ruby/site_ruby/1.8/htmlgrid/list.rb:129:in `init'
    /usr/lib64/ruby/site_ruby/1.8/htmlgrid/component.rb:138:in `initialize'
    companylist.rb:71:in `new'
    companylist.rb:71:in `test_no_double_sort'

1 tests, 0 assertions, 0 failures, 1 errors

masa@masa ~/ywesee/oddb.org/test/test_view/drugs $ ls
fachinfoconfirm.rb  galenicgroup.rb  resultlist.rb

masa@masa ~/ywesee/oddb.org/test/test_view/drugs $ ruby fachinfoconfirm.rb 
/usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- view/drugs/fachinfoconfirm (LoadError)
        from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
        from fachinfoconfirm.rb:8

masa@masa ~/ywesee/oddb.org/test/test_view/drugs $ ruby galenicgroup.rb 
/usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- view/drugs/galenicform (LoadError)
        from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
        from galenicgroup.rb:8

masa@masa ~/ywesee/oddb.org/test/test_view/drugs $ ruby resultlist.rb 
/home/masa/ywesee/oddb.org/src/view/drugs/resultlist.rb:21: warning: already initialized constant BACKGROUND_SUFFIX
resultlist.rb:20:in `public': undefined method `hash_insert' for class `ODDB::View::Drugs::RootResultList' (NameError)
        from resultlist.rb:20

masa@masa ~/ywesee/oddb.org/test/test_view/user $ ls
powerlink.rb

masa@masa ~/ywesee/oddb.org/test/test_view/user $ ruby powerlink.rb 
Loaded suite powerlink
Started
..
Finished in 0.000245 seconds.

2 tests, 6 assertions, 0 failures, 0 errors

Summary

  • test_state/admin
    1. companyuser.rb: 2 errors, run
    2. login.rb: 1 error, run
    3. patinfo_stats.rb: no failure, no error
    4. root.rb: 1 error, run
  • test_state/companies
    1. companylist.rb: error, stop solved
    2. company.rb: 7 errors, run
    3. mergecompanies.rb: no failure, no error
  • test_state/drugs
    1. activeagent.rb: error, stop solved
    2. fachinfoconfirm.rb: error, stop
    3. galenicform.rb: error, stop
    4. galenicgroup.rb: error, stop
    5. incompleteregistrations.rb: error, stop
    6. init.rb: 2 errors, 2 failures, run
    7. mergegalenicform.rb: 6 errors, run
    8. register_download.rb: error, stop
    9. result.rb: error, stop
  • test_state/interactions
    1. basket.rb: error, stop
    2. result.rb: error, stop
  • test_state/paypal
    1. ipn.rb: 1 error, run
  • test_substances
    1. substance.rb: 14 errors, run
  • test_state/users
    1. download_export.rb: no failue, no error
    2. fipi_offer_input.rb: 3 errors, run
  • test_view/companies
    1. companylist.rb: 1 error, run
  • test_view/drugs
    1. fachinfoconfirm.rb: error, stop
    2. galenicgroup.rb: error, stop
    3. resultlist.rb: error, stop
  • test_view/user
    1. powerlink.rb: no failure, no error

test_state/suite.rb

#!/usr/bin/env ruby
# suite.rb -- oddb -- 25.02.2011 -- mhatakeyama@ywesee.com 

require 'find'

$: << here = File.expand_path(File.dirname(__FILE__))

Find.find(here) { |file|
  if file.match(/\.rb$/) && !file.match(/suite\.rb/)
p file
    require file
  end
}

define_empty_class_download_export.rb

#!/usr/bin/env ruby
# DefineEmptyClassDownloadExport -- oddb.org -- 23.02.2011 -- mhatakeyama@ywesee.com

$: << File.expand_path('../../../src', File.dirname(__FILE__))

require 'htmlgrid/template'
module SBSM
  class State; end
end
module ODDB
  module State
    module PayPal
      module Checkout; end
    end
    class Global < SBSM::State; end
    module User
      class Global < State::Global; end
      class DownloadExport < State::User::Global; end
    end
  end
  module View
    class PublicTemplate < HtmlGrid::Template; end
    class ResultTemplate < PublicTemplate; end
  end
end

Remove errors

  • test_state/companies/companylist.rb: no failure, no error
  • test_state/drugs/activeagent.rb: no failure, no error

Commit

Set UTF-8 in vim

.vimrc

set encoding=utf-8
set fileencodings=utf-8

.Xresources

xterm*utf8: 1
xterm -fn -*-fixed-medium-r-*-*-20-*-*-*-*-*-iso10646-*
XTerm*font: fixed

.bashrc

 alias xxterm='xterm -fn -*-fixed-medium-r-*-*-20-*-*-*-*-*-iso10646-* -background black -foreground white'

Reference (encoding, fileencoding, fileencodings)

view · edit · sidebar · attach · print · history
Page last modified on February 28, 2011, at 04:57 PM