Rake 测试失败

发布于 2024-08-10 14:07:17 字数 3083 浏览 5 评论 0原文

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:ingem_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:in require_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:in require_dependency'来自 /Users/rafaelparra/Sites/e2g2/config/../vendor/rails/railties/lib/initializer.rb:393:inload_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:inload_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:inload_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:inrequire' 来自 ./test/unit/../test_helper.rb:2 来自 ./test/unit/answer_test.rb:14:in require' 来自 ./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
(MissingSourceFile) from
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
require' from
/Users/rafaelparra/Sites/e2g2/vendor/rails/activesupport/lib/active_support/dependencies.rb:158:in
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
gem_original_require' from
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
require' from
/Users/rafaelparra/Sites/e2g2/vendor/rails/activesupport/lib/active_support/dependencies.rb:158:in
require' from
/Users/rafaelparra/Sites/e2g2/vendor/rails/activesupport/lib/active_support/dependencies.rb:265:in
require_or_load' from
/Users/rafaelparra/Sites/e2g2/vendor/rails/activesupport/lib/active_support/dependencies.rb:224:in
depend_on' from
/Users/rafaelparra/Sites/e2g2/vendor/rails/activesupport/lib/active_support/dependencies.rb:136:in
require_dependency' from
/Users/rafaelparra/Sites/e2g2/config/../vendor/rails/railties/lib/initializer.rb:393:in
load_application_classes' from
/Users/rafaelparra/Sites/e2g2/config/../vendor/rails/railties/lib/initializer.rb:392:in
each' from
/Users/rafaelparra/Sites/e2g2/config/../vendor/rails/railties/lib/initializer.rb:392:in
load_application_classes' from
/Users/rafaelparra/Sites/e2g2/config/../vendor/rails/railties/lib/initializer.rb:390:in
each' from
/Users/rafaelparra/Sites/e2g2/config/../vendor/rails/railties/lib/initializer.rb:390:in
load_application_classes' from
/Users/rafaelparra/Sites/e2g2/config/../vendor/rails/railties/lib/initializer.rb:195:in
process' from
/Users/rafaelparra/Sites/e2g2/config/../vendor/rails/railties/lib/initializer.rb:113:in
send' from
/Users/rafaelparra/Sites/e2g2/config/../vendor/rails/railties/lib/initializer.rb:113:in
run' from /Users/rafaelparra/Sites/e2g2/config/environment.rb:14
from ./test/unit/../test_helper.rb:2:in
require' from
./test/unit/../test_helper.rb:2 from ./test/unit/answer_test.rb:14:in
require' from ./test/unit/answer_test.rb:14 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
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
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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文