simply_stored test

$ sudo port selfupdate
$ sudo port install couchdb +server
$ sudo couchdb

couchdbをインストール、起動して、http://127.0.0.1:5984/ にアクセスすると、

{"couchdb":"Welcome","version":"0.11.0"}

というJSONが返ってくるので、couchdbは無事起動できた。


で、http://github.com/peritor/simply_storedからforkしたばっかりの http://github.com/akm/simply_stored をcloneしたディレクトリで、rakeを実行すると3件のエラーが。

$ rake
(in /users/takeshi/workspace/simply_stored)
/Users/takeshi/.rvm/rubies/ruby-1.8.7-p249/bin/ruby -I"lib:test/" "/Users/takeshi/.rvm/gems/ruby-1.8.7-p249@global/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" "test/custom_views_test.rb" "test/simply_stored_couch_test.rb" "test/simply_stored_simpledb_test.rb" 
  * DEFERRED: The simply stored base class attributes longer than 1024 bytes should add partitioned attributes to the class metadata. 
Loaded suite /Users/takeshi/.rvm/gems/ruby-1.8.7-p249@global/gems/rake-0.8.7/lib/rake/rake_test_loader
Started
..........Warning: Defining view CountMe#by_title with keys "title" at call time, please add it to the class body. (Called from ./lib/simply_stored/couch.rb:110:in `method_missing')
......................Warning: Defining view User#by_homepage with keys "homepage" at call time, please add it to the class body. (Called from ./lib/simply_stored/couch.rb:110:in `method_missing')
.Warning: Defining view User#by_foo_attribute with keys "foo_attribute" at call time, please add it to the class body. (Called from ./lib/simply_stored/couch.rb:110:in `method_missing')
.Warning: Defining view User#by_name with keys "name" at call time, please add it to the class body. (Called from ./lib/simply_stored/couch.rb:110:in `method_missing')
.Warning: Defining view User#by_title with keys "title" at call time, please add it to the class body. (Called from ./lib/simply_stored/couch.rb:110:in `method_missing')
...................................Warning: Defining view Hemorrhoid#by_nickname with keys "nickname" at call time, please add it to the class body. (Called from ./lib/simply_stored/couch.rb:112:in `method_missing')
Warning: Defining view Hemorrhoid#by_nickname_withoutdeleted with keys ["nickname", :deleted_at] at call time, please add it to the class body. (Called from ./lib/simply_stored/couch.rb:112:in `method_missing')
................................Warning: Defining view Hemorrhoid#by_nickname_and_size_withoutdeleted with keys ["nickname", "size", :deleted_at] at call time, please add it to the class body. (Called from ./lib/simply_stored/couch.rb:110:in `method_missing')
.........................................................................................Warning: Defining view Identity#by_id with keys "id" at call time, please add it to the class body. (Called from ./lib/simply_stored/couch.rb:108:in `method_missing')
....................New RightAws::S3Interface using shared connections mode
New RightAws::S3Interface using shared connections mode
F............................................................................................F........................................................New RightAws::S3Interface using shared connections mode
F...............
Finished in 63.129111 seconds.

  1) Failure:
test: A simply stored couch instance with s3 interaction when saving the attachment should add a short-lived access key for private attachments. (CouchTest)
    [./test/simply_stored_couch_test.rb:1449:in `__bind_1273900795_52016'
     /Users/takeshi/.rvm/gems/ruby-1.8.7-p249@simply_stored/gems/shoulda-2.10.3/lib/shoulda/context.rb:362:in `call'
     /Users/takeshi/.rvm/gems/ruby-1.8.7-p249@simply_stored/gems/shoulda-2.10.3/lib/shoulda/context.rb:362:in `test: A simply stored couch instance with s3 interaction when saving the attachment should add a short-lived access key for private attachments. '
     /Users/takeshi/.rvm/gems/ruby-1.8.7-p249@simply_stored/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `__send__'
     /Users/takeshi/.rvm/gems/ruby-1.8.7-p249@simply_stored/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `run']:
https://bucket-for-monsieur.s3.amazonaws.com:443/couch_log_items%2Flog_data%2Fb1be32df4bf3c7abbec319f76713a46d?Signature=OC7RLxNVSxXFHQvJNn9%2FA5cF3SM%3D&Expires=1273901095&AWSAccessKeyId=abcdef.
<false> is not true.

  2) Failure:
test: The simply stored base class timestamps should timestamp_loads_from_representation_as_integer. (SimplyStoredTest)
    [./test/simply_stored_simpledb_test.rb:771:in `__bind_1273900803_447028'
     /Users/takeshi/.rvm/gems/ruby-1.8.7-p249@simply_stored/gems/shoulda-2.10.3/lib/shoulda/context.rb:362:in `call'
     /Users/takeshi/.rvm/gems/ruby-1.8.7-p249@simply_stored/gems/shoulda-2.10.3/lib/shoulda/context.rb:362:in `test: The simply stored base class timestamps should timestamp_loads_from_representation_as_integer. '
     /Users/takeshi/.rvm/gems/ruby-1.8.7-p249@simply_stored/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `__send__'
     /Users/takeshi/.rvm/gems/ruby-1.8.7-p249@simply_stored/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `run']:
<Mon Jan 12 01:07:59 UTC 2004> expected but was
<Mon Jan 12 09:07:59 UTC 2004>.

  3) Failure:
test: The simply stored base class with attachments with s3 interaction when saving the attachment should add a short-lived access key for private attachments. (SimplyStoredTest)
    [./test/simply_stored_simpledb_test.rb:1313:in `__bind_1273900813_933194'
     /Users/takeshi/.rvm/gems/ruby-1.8.7-p249@simply_stored/gems/shoulda-2.10.3/lib/shoulda/context.rb:362:in `call'
     /Users/takeshi/.rvm/gems/ruby-1.8.7-p249@simply_stored/gems/shoulda-2.10.3/lib/shoulda/context.rb:362:in `test: The simply stored base class with attachments with s3 interaction when saving the attachment should add a short-lived access key for private attachments. '
     /Users/takeshi/.rvm/gems/ruby-1.8.7-p249@simply_stored/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `__send__'
     /Users/takeshi/.rvm/gems/ruby-1.8.7-p249@simply_stored/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `run']:
<false> is not true.

377 tests, 761 assertions, 3 failures, 0 errors
rake aborted!
Command failed with status (1): [/Users/takeshi/.rvm/rubies/ruby-1.8.7-p249...]

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