Rake 测试失败
Snow Leopard、Test、Shoulda、Cucumber
我正在运行 rake 测试并收到此错误:
有什么想法吗?
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in gem_original_require':没有要加载的文件 -- RMagick (缺少源文件)来自 /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in 要求来自 /Users/rafaelparra/Sites/e2g2/vendor/rails/activesupport/lib/active_support/dependencies.rb:158:in
需要来自 /Users/rafaelparra/Sites/e2g2/app/models/business_profile_image.rb:24 从 /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
gem_original_require'来自 /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in需要来自 /Users/rafaelparra/Sites/e2g2/vendor/rails/activesupport/lib/active_support/dependencies.rb:158:in
要求来自 /Users/rafaelparra/Sites/e2g2/vendor/rails/activesupport/lib/active_support/dependencies.rb:265:inrequire_or_load' 来自 /Users/rafaelparra/Sites/e2g2/vendor/rails/activesupport/lib/active_support/dependencies.rb:224:in
依赖于来自 /Users/rafaelparra/Sites/e2g2/vendor/rails/activesupport/lib/active_support/dependencies.rb:136:inrequire_dependency'来自 /Users/rafaelparra/Sites/e2g2/config/../vendor/rails/railties/lib/initializer.rb:393:in
load_application_classes'来自 /Users/rafaelparra/Sites/e2g2/config/../vendor/rails/railties/lib/initializer.rb:392:in每个'来自 /Users/rafaelparra/Sites/e2g2/config/../vendor/rails/railties/lib/initializer.rb:392:in
load_application_classes'来自 /Users/rafaelparra/Sites/e2g2/config/../vendor/rails/railties/lib/initializer.rb:390:in每个'来自 /Users/rafaelparra/Sites/e2g2/config/../vendor/rails/railties/lib/initializer.rb:390:in
load_application_classes'来自 /Users/rafaelparra/Sites/e2g2/config/../vendor/rails/railties/lib/initializer.rb:195:in处理'自 /Users/rafaelparra/Sites/e2g2/config/../vendor/rails/railties/lib/initializer.rb:113:in
发送自 /Users/rafaelparra/Sites/e2g2/config/../vendor/rails/railties/lib/initializer.rb:113:in从 /Users/rafaelparra/Sites/e2g2/config/environment.rb:14 运行' 来自 ./test/unit/../test_helper.rb:2:in
require' 来自 ./test/unit/../test_helper.rb:2 来自 ./test/unit/answer_test.rb:14:inrequire' 来自 ./test/unit/answer_test.rb:14 来自 /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake/rake_test_loader.rb:5:in
加载自 /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake/rake_test_loader.rb:5 从 /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake/rake_test_loader.rb:5:in ‘每个’来自 /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake/rake_test_loader.rb:5 耙子中止!命令失败,状态为 (1): [/System/Library/Frameworks/Ruby.framework/...]
Snow Leopard, Test, Shoulda, Cucumber
I am running rake test and getting this error:
Any ideas?
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
gem_original_require': no such file to load -- RMagick
require' from
(MissingSourceFile) from
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
/Users/rafaelparra/Sites/e2g2/vendor/rails/activesupport/lib/active_support/dependencies.rb:158:inrequire' from
gem_original_require' from
/Users/rafaelparra/Sites/e2g2/app/models/business_profile_image.rb:24
from
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:inrequire' from
require' from
/Users/rafaelparra/Sites/e2g2/vendor/rails/activesupport/lib/active_support/dependencies.rb:158:in
/Users/rafaelparra/Sites/e2g2/vendor/rails/activesupport/lib/active_support/dependencies.rb:265:inrequire_or_load' from
depend_on' from
/Users/rafaelparra/Sites/e2g2/vendor/rails/activesupport/lib/active_support/dependencies.rb:224:in
/Users/rafaelparra/Sites/e2g2/vendor/rails/activesupport/lib/active_support/dependencies.rb:136:inrequire_dependency' from
load_application_classes' from
/Users/rafaelparra/Sites/e2g2/config/../vendor/rails/railties/lib/initializer.rb:393:in
/Users/rafaelparra/Sites/e2g2/config/../vendor/rails/railties/lib/initializer.rb:392:ineach' from
load_application_classes' from
/Users/rafaelparra/Sites/e2g2/config/../vendor/rails/railties/lib/initializer.rb:392:in
/Users/rafaelparra/Sites/e2g2/config/../vendor/rails/railties/lib/initializer.rb:390:ineach' from
load_application_classes' from
/Users/rafaelparra/Sites/e2g2/config/../vendor/rails/railties/lib/initializer.rb:390:in
/Users/rafaelparra/Sites/e2g2/config/../vendor/rails/railties/lib/initializer.rb:195:inprocess' from
send' from
/Users/rafaelparra/Sites/e2g2/config/../vendor/rails/railties/lib/initializer.rb:113:in
/Users/rafaelparra/Sites/e2g2/config/../vendor/rails/railties/lib/initializer.rb:113:inrun' from /Users/rafaelparra/Sites/e2g2/config/environment.rb:14
require' from
from ./test/unit/../test_helper.rb:2:in
./test/unit/../test_helper.rb:2 from ./test/unit/answer_test.rb:14:inrequire' from ./test/unit/answer_test.rb:14 from
load' from
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake/rake_test_loader.rb:5:in
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake/rake_test_loader.rb:5
from
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake/rake_test_loader.rb:5:in
`each' from
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake/rake_test_loader.rb:5
rake aborted! Command failed with status (1):
[/System/Library/Frameworks/Ruby.framework/...]
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否为 Snow Leopard 重新编译了 RMagic?
http://onrails.org/articles/ 2009/09/04/rmagick-from-source-on-snow-leopard
Have you re-compiled RMagic for Snow Leopard?
http://onrails.org/articles/2009/09/04/rmagick-from-source-on-snow-leopard