代码之家  ›  专栏  ›  技术社区  ›  Lee McAlilly

无法使用Rails 3运行自动测试

  •  2
  • Lee McAlilly  · 技术社区  · 14 年前

    不知道发生了什么,但是我不能让AutoTest与Rails 3一起工作。我使用的是Ruby1.9.2-head和Rails3.0.0,我安装了所有相关的gems。我在我的GemFile中这样声明:

    group :development do 
      gem 'rspec-rails', '2.0.0.beta.18'
      gem 'annotate-models', '1.0.4'
      gem 'autotest'
      gem 'autotest-rails'
      gem 'autotest-growl'
      gem 'autotest-fsevent'
    end
    

    当我尝试运行autotest命令时,我得到以下错误: 在这里输入代码 Error loading Autotest style autotest/rails_rspec2 (no such file to load -- autotest/rails_rspec2). Aborting.

    2 回复  |  直到 14 年前
        1
  •  0
  •   nathanvda    14 年前

    bundle exec

    group :development, :test do
      gem "rspec-rails", ">= 2.0.0.beta.18"
      gem "autotest"
    end
    

    autotest-rails

        2
  •  3
  •   Lee McAlilly    14 年前