<< Masa.20110223-output-order-bbmb | 2011 | Masa.20110221-testcases-updater-oddb_org >>
Note
1) Failure: test_log_info(ODDB::TestUpdater) [./updater.rb:105]: <{:recipients=>[]}> expected but was <{:recipients=>["mhatakeyama@ywesee.com"]}>. 2) Failure: test_recipients(ODDB::TestUpdater) [./updater.rb:99]: <[]> expected but was <["mhatakeyama@ywesee.com"]>. 3) Failure: test_last_medication_update(TestOddbApp) [./oddbapp.rb:755]: <Tue, 22 Feb 2011> expected but was <Sat, 01 Jan 2011>. 429 tests, 670 assertions, 3 failures, 0 errors
Note
Commit
Commit
Task
Reference
Memo
Design
suspend
lib/bbmb/util/server.rb
#def masa def masa(id) # sample # ch.bbmb> masa(4100611725) # -> 1 #Model::Customer.find_by_customer_id(id).orders[0].length open("/home/masa/work/test.dat","w") do |f| #Model::Customer.find_by_customer_id(id).orders[0].positions[0].description #Model::Customer.find_by_customer_id(id).orders[0].positions[0].commit_date dates = [] Model::Customer.find_by_customer_id(id).orders.each do |order| dates << order.commit_time end dates.sort.each do |date| f.puts date end end =begin open("/home/masa/work/test.dat","w") do |f| BBMB.persistence.all(Model::Order).select { |order| #order.commit_time && range.include?(order.commit_time) f.puts order.commit_time } end "done" =end end
Run
masa@masa ~/ywesee/bbmb $ bin/admin ch.bbmb> masa(4100606423) -> Array
Result
Mon Jan 14 13:19:01 +0100 2008 Wed Jan 23 14:16:36 +0100 2008 Wed Jan 30 11:40:50 +0100 2008 Mon Feb 04 11:13:08 +0100 2008 Wed Feb 13 14:23:27 +0100 2008 Wed Feb 20 11:09:14 +0100 2008 Wed Feb 27 14:06:26 +0100 2008 Mon Mar 03 12:55:53 +0100 2008 Tue Apr 29 11:40:03 +0200 2008 Mon May 05 10:39:47 +0200 2008 ...
Note