joshmh / globalize2

The second incarnation of Globalize for Rails
http://www.globalize-rails.org/
MIT License
364 stars 57 forks source link

rake test failed in rails 3 #53

Open qichunren opened 13 years ago

qichunren commented 13 years ago

usermatoMacBook-Pro:globalize2 qichunren$ rake test (in /Users/qichunren/github/globalize2) /Users/qichunren/.rvm/rubies/ruby-1.9.2-p0/bin/ruby -I"lib:lib" "/Users/qichunren/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" "test/active_record/fallbacks_test.rb" "test/active_record/migration_test.rb" "test/active_record/sti_translated_test.rb" "test/active_record/translates_test.rb" "test/active_record/translation_class_test.rb" "test/active_record_test.rb" "test/i18n/missing_translations_test.rb" /Users/qichunren/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-3.1.0.beta1/lib/active_record/base.rb:1048:in method_missing': undefined methodclass_inheritable_accessor' for Post(Table doesn't exist):Class (NoMethodError) from /Users/qichunren/github/globalize2/lib/globalize/active_record.rb:47:in translates' from /Users/qichunren/github/globalize2/test/data/models.rb:11:inclass:Post' from /Users/qichunren/github/globalize2/test/data/models.rb:10:in <top (required)>' from <internal:lib/rubygems/custom_require>:29:inrequire' from internal:lib/rubygems/custom_require:29:in require' from /Users/qichunren/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.1.0.beta1/lib/active_support/dependencies.rb:237:inblock in require' from /Users/qichunren/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.1.0.beta1/lib/active_support/dependencies.rb:223:in block in load_dependency' from /Users/qichunren/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.1.0.beta1/lib/active_support/dependencies.rb:639:innew_constants_in' from /Users/qichunren/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.1.0.beta1/lib/active_support/dependencies.rb:223:in load_dependency' from /Users/qichunren/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.1.0.beta1/lib/active_support/dependencies.rb:237:inrequire' from test/active_record/fallbacks_test.rb:2:in <top (required)>' from /Users/qichunren/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5:inload' from /Users/qichunren/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5:in block in <main>' from /Users/qichunren/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5:ineach' from /Users/qichunren/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5:in `

' rake aborted! Command failed with status (1): [/Users/qichunren/.rvm/rubies/ruby-1.9.2-p0...]

(See full trace by running task with --trace) usermatoMacBook-Pro:globalize2 qichunren$