Why is sentry's test fixtures nil?

I tried sentry plugin’s test. It occured error with below message.

rake test DB=‘mysql’

– create_table(“users”, {:force=>true})
-> 0.0214s
– initialize_schema_information()
-> 0.0006s
– columns(“schema_info”)
-> 0.0021s
Loaded suite /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake/
rake_test_loader
Started
EE…EE…E.FE…
Finished in 0.049832 seconds.

  1. Error:
    test_should_decrypt_creditcard(AsymmetricSentryCallbackTest):
    NoMethodError: undefined method []' for nil:NilClass /opt/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/ active_record/fixtures.rb:498:inusers’
    ./test/asymmetric_sentry_callback_test.rb:28:in
    `test_should_decrypt_creditcard’

  2. Error:
    test_should_decrypt_encrypted_creditcard(AsymmetricSentryCallbackTest):
    NoMethodError: undefined method []' for nil:NilClass /opt/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/ active_record/fixtures.rb:498:inusers’
    ./test/asymmetric_sentry_callback_test.rb:54:in
    `test_should_decrypt_encrypted_creditcard’

  1. Error:
    test_should_return_nil_on_invalid_key(SymmetricSentryCallbackTest):
    NoMethodError: undefined method []' for nil:NilClass /opt/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/ active_record/fixtures.rb:498:inusers’
    ./test/symmetric_sentry_callback_test.rb:26:in
    `test_should_return_nil_on_invalid_key’

30 tests, 53 assertions, 1 failures, 6 errors


These error may be caused by failure of fixtures initializations.
How can i fix this problem?
I tried it under below environment.

Ruby version 1.8.6 (i686-darwin8.10.2)
RubyGems version 0.9.4
Rails version 1.2.3
Active Record version 1.15.3
Action Pack version 1.13.3
Action Web Service version 1.2.3
Action Mailer version 1.3.3
Active Support version 1.4.2

I found the reason why fixtures had not been initialized.
The fixtures is initialized by
Test::Unit::TestCase#setup_with_fixtures, it is aliased :setup,
which is required that ActiveRecord::Base.configurations is not nil

I added code to set ActiveRecord::Base.configurations below code.

– abstract_unit.rb 2007-11-23 14:00:26.000000000 +0900
+++ abstract_unit.new 2007-11-23 14:04:40.000000000 +0900
@@ -12,6 +12,7 @@

config = YAML::load(IO.read(config_location))
ActiveRecord::Base.logger = Logger.new(File.dirname(FILE) + “/
debug.log”)
+ActiveRecord::Base.configurations=config
ActiveRecord::Base.establish_connection(config[ENV[‘DB’] ||
‘sqlite’])

load(File.dirname(FILE) + “/schema.rb”)