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.
-
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:in
users’
./test/asymmetric_sentry_callback_test.rb:28:in
`test_should_decrypt_creditcard’ -
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:in
users’
./test/asymmetric_sentry_callback_test.rb:54:in
`test_should_decrypt_encrypted_creditcard’
…
- 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:in
users’
./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