运行规范错误:无法加载Unicode表

时间:2013-09-10 18:32:57

标签: ruby-on-rails ruby rake activesupport

我试图运行我的规格但是我收到以下错误:

No DRb server is running. Running in local process instead ...

1) FinancialAccountsQuery parcial_future_releases LIMIT_DATE_FILTER transactions 
 Failure/Error: let(:financial_account) { FactoryGirl.create(:financial_account_with_church) }
 IOError:
   Couldn't load the Unicode tables for UTF8Handler (dump format error(0x6b)), ActiveSupport::Multibyte is unusable
 # ./spec/queries/financial_accounts_query_spec.rb:4:in `block (2 levels) in <top (required)>'
 # ./spec/queries/financial_accounts_query_spec.rb:106:in `create_transaction'
 # ./spec/queries/financial_accounts_query_spec.rb:8:in `block (3 levels) in <top (required)>'

我尝试使用rake db:drop删除所有数据库,然后使用rake db:createrake db:migrate再次创建它们,但似乎没有解决它。

我的database.yml

development:
    adapter: "mysql2"
    encoding: "utf8"
    database: "ibc1"
    username: "root"
    password: ""
    host: 127.0.0.1

test:
  adapter: "mysql2"
  encoding: "utf8"
  database: "gi_test"
  username: "root"
  password: ""
  host: 127.0.0.1

任何人有任何想法解决这个问题? 谢谢:))

0 个答案:

没有答案