Rails 无法在任何源中找到 devise-1.4.6(尝试运行 rspec 测试)

发布于 12-09 15:02 字数 1444 浏览 1 评论 0原文

我尝试运行规格测试并得到

bundle exec rake spec
Could not find selenium-webdriver-2.6.0 in any of the sources

所以我捆绑并得到:

捆绑 正在获取 http://rubygems.org/ 的源索引 在任何源中都找不到 devise-1.4.6

所以我尝试安装 devise 1.4.6 但我得到了

gem install devise -v1.4.6
ERROR:  Could not find a valid gem 'devise' (= 1.4.6) in any repository
ERROR:  Possible alternatives: devise

这真的很奇怪,因为我的 Gem 文件本身只有“Devise”(没有版本号)。

我的 Gem 文件的其余部分如下。

我还做了 rake test:prepare 并且数据库和表存在于测试中。

cat Gemfile
source 'http://rubygems.org'

gem 'rake', '0.9.2'
gem 'rails', '3.1.0'
gem 'haml'
gem 'simple_form'
gem 'devise'
gem 'mysql2'
gem 'therubyracer'
# Gems used only for assets and not required
# in production environments by default.
group :assets do
  gem 'sass-rails', "  ~> 3.1.0"
  gem 'coffee-rails', "~> 3.1.0"
  gem 'uglifier'
end
gem 'jquery-rails'
# To use debugger
# gem 'ruby-debug19', :require => 'ruby-debug'
group :test, :development do
#  gem 'cucumber-rails', '0.5.0'
  gem 'capybara'#, '1.0.0.beta1'
  gem 'database_cleaner'#, '0.6.7'
  gem "rspec-rails", "~> 2.6"
#  gem 'forgery', '0.3.8'
  gem "forgery"
  gem 'factory_girl'#, '1.3.3'
  gem 'factory_girl_rails'#, '1.0.1'
  gem 'shoulda'#, '2.11.3'
  gem 'rcov'
  gem 'turn', :require => false  # Pretty printed test output
end

I try to run spec tests and I get

bundle exec rake spec
Could not find selenium-webdriver-2.6.0 in any of the sources

So I bundle and I get:

bundle
Fetching source index for http://rubygems.org/
Could not find devise-1.4.6 in any of the sources

So I try to install devise 1.4.6 but I get

gem install devise -v1.4.6
ERROR:  Could not find a valid gem 'devise' (= 1.4.6) in any repository
ERROR:  Possible alternatives: devise

Which is really strange as my Gem file itself just has 'Devise' (no version number).

The rest of my Gem file is below.

I have also done rake test:prepare and the database and table exists in test.

cat Gemfile
source 'http://rubygems.org'

gem 'rake', '0.9.2'
gem 'rails', '3.1.0'
gem 'haml'
gem 'simple_form'
gem 'devise'
gem 'mysql2'
gem 'therubyracer'
# Gems used only for assets and not required
# in production environments by default.
group :assets do
  gem 'sass-rails', "  ~> 3.1.0"
  gem 'coffee-rails', "~> 3.1.0"
  gem 'uglifier'
end
gem 'jquery-rails'
# To use debugger
# gem 'ruby-debug19', :require => 'ruby-debug'
group :test, :development do
#  gem 'cucumber-rails', '0.5.0'
  gem 'capybara'#, '1.0.0.beta1'
  gem 'database_cleaner'#, '0.6.7'
  gem "rspec-rails", "~> 2.6"
#  gem 'forgery', '0.3.8'
  gem "forgery"
  gem 'factory_girl'#, '1.3.3'
  gem 'factory_girl_rails'#, '1.0.1'
  gem 'shoulda'#, '2.11.3'
  gem 'rcov'
  gem 'turn', :require => false  # Pretty printed test output
end

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

舂唻埖巳落2024-12-16 15:02:59

是的,它已被撤回,请参阅此处

1.4.6 September 19, 2011 yanked

Yes, it has been yanked, see here:

1.4.6 September 19, 2011 yanked
抠脚大汉2024-12-16 15:02:59

它正在读取您的 Gemfile.lock,因此您需要运行 bundle update

It is reading your Gemfile.lock so you need to run bundle update

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