gpt4 book ai didi

Rspec 将无法运行 - 错误:在 `bin_path' 中:找不到 rspec-2.0.0.beta.22 的可执行规范(Gem::Exception)

转载 作者:行者123 更新时间:2023-12-02 02:06:04 27 4
gpt4 key购买 nike

当我从 Rails 应用程序上的命令提示符运行规范时。

$ spec spec

我收到以下错误:

/Library/Ruby/Site/1.8/rubygems.rb:335:in `bin_path': 找不到 rspec-2.0.0.beta.22 的可执行规范(Gem::Exception) 来自/usr/bin/spec:19

但是当我运行时

$ rake spec

测试运行良好。

有什么问题吗?

最佳答案

spec 命令在 2.0 中重命名为 rspec。您仍然可以运行它,因为 1.x Gem 仍在您的系统上,只是当您在 Gemfile 中指定 2.x 时,它被 Bundler“隐藏”了。

关于Rspec 将无法运行 - 错误:在 `bin_path' 中:找不到 rspec-2.0.0.beta.22 的可执行规范(Gem::Exception),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3698522/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com