[英]Rails Community Engine plugin unit tests fail
Community Engine installed fine locally on my mac, but when I try to install it on my web server, it's giving me some trouble. Community Engine在Mac上本地安装良好,但是当我尝试在Web服务器上安装它时,给我带来了一些麻烦。 Here's the problem I'm having now, when I run rake test
这是我现在进行rake test
时遇到的问题
$ [~/projects/polis]# rake test --trace
(in /home/mculp/projects/polis)
** Invoke test (first_time)
** Execute test
** Invoke test:units (first_time)
** Invoke db:test:prepare (first_time)
** Invoke db:abort_if_pending_migrations (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:abort_if_pending_migrations
** Execute db:test:prepare
** Invoke db:test:load (first_time)
** Invoke db:test:purge (first_time)
** Invoke environment
** Execute db:test:purge
** Invoke test:functionals (first_time)
** Invoke db:test:prepare
** Execute test:functionals
/usr/bin/ruby -I"/home/mculp/projects/polis/lib" -I"/home/mculp/projects/polis/test" "/usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake/rake_test_loader.rb"
** Invoke test:integration (first_time)
** Invoke db:test:prepare
** Execute test:integration
/usr/bin/ruby -I"/home/mculp/projects/polis/lib" -I"/home/mculp/projects/polis/test" "/usr/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake/rake_test_loader.rb"
Errors running test:units!
Any Ideas? 有任何想法吗?
It looks like your paste might be truncated, I don't see a backtrace. 看来您的粘贴可能被截断了,我没有看到回溯。
The first thing you should do is compare your local gem list
to your server machine, and see if there is anything that stands out to you. 您应该做的第一件事是将本地gem list
与您的服务器计算机进行比较,看看是否有什么与众不同。 Especially look at the versions of gem dependencies for Community Engine (desert, rmagick, hpricot, etc). 尤其要看一下社区引擎的gem依赖版本(沙漠,rmagick,hpricot等)。
You can also try using Community Engine edge branch, which we're using in production just fine. 您也可以尝试使用Community Engine Edge分支,我们在生产中使用它的效果很好。 See http://github.com/bborn/communityengine/tree/edge 参见http://github.com/bborn/communityengine/tree/edge
Let me know how it goes. 让我知道事情的后续。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.