我正在开始自动测试'rspec = true autotest'并且我有错误(rake db:test:prepare 已执行):
弃用警告:不推荐调用 set_table_name。请self.table_name = 'the_name'
改用。(从包含在 /my_project_name/app/models/ckeditor/asset.rb:2 调用)
弃用警告:Factory.define 已弃用;使用 FactoryGirl.define 块语法来声明您的工厂。(从 /my_project_name/spec/factories.rb:2 调用)
弃用警告:Factory.define 已弃用;使用 FactoryGirl.define 块语法来声明您的工厂。(从 /my_project_name/spec/factories.rb:9 调用)/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:251:in ` require': 无法加载此类文件 -- capybara/rspec (LoadError)
我的宝石文件:
source 'https://rubygems.org'
gem 'rails', '3.2.6'
gem 'pg', '0.14.0' # БД
gem 'therubyracer', '0.10.1'
gem 'jquery-rails', '2.0.2'
gem 'paperclip', '3.1.2'
gem 'ckeditor', '3.6.3'
group :assets do
gem 'sass-rails', '3.2.5'
gem 'coffee-rails', '~> 3.2.2'
gem 'uglifier', '>= 1.2.6'
end
group :development do
gem 'rspec-rails', '2.11.0'
gem 'annotate', '2.4.0'
end
group :test do
gem 'rspec-rails', '2.11.0'
gem 'factory_girl_rails', '3.5.0'
end
怎么了?它适用于rails 3.1!