自动测试找不到咆哮?(Ruby 1.9.3,Rails 3.2.11)

自动测试找不到咆哮?(Ruby 1.9.3,Rails 3.2.11)

还没有看到任何其他类似的错误。Autotest 抱怨即使安装了 Growl 也无法找到它。尝试使用 sudo 卸载/重新安装所有内容。一切都是最新的。这是针对 Mac 10.8.2 的。

ZenTest 已安装并且是最新的。

重新进行 bundle 安装

自动测试在 gemfile 中

group :test do
  gem 'rspec-rails'
  gem 'webrat'
  gem 'spork'
  gem 'capybara', '1.1.2'
  gem 'autotest-growl'
  gem 'autotest'
  gem 'autotest-fsevent'
end

.autotest(位于应用程序根目录中)需要以下内容:

require 'autotest/fsevent'
require 'autotest/growl'
require 'autotest/fsevent'
require 'autotest/growl'

Autotest.add_hook :initialize do |autotest|
  %w{.git .svn .hg .DS_Store ._* vendor tmp log doc}.each do |exception|
  autotest.add_exception(exception)
  end
end

这是控制台输出:

sample_app jameswest$ autotest

loading autotest/rails_rspec2

/Users/jameswest/.rvm/rubies/ruby-1.9.3-p362/bin/ruby -rrubygems -S '/Users/jameswest/.rvm/gems/ruby-1.9.3-p362/gems/rspec-core-2.10.1/exe/rspec' --tty '/Users/jameswest/rails_projects/sample_app/spec/controllers/pages_controller_spec.rb' /Users/jameswest/.rvm/gems/ruby-1.9.3-p362/gems/rspec-core-2.12.2/lib/rspec/core/configuration.rb:789:in load': /Users/jameswest/rails_projects/sample_app/spec/controllers/pages_controller_spec.rb:52: syntax error, unexpected $end, expecting keyword_end (SyntaxError) from /Users/jameswest/.rvm/gems/ruby-1.9.3-p362/gems/rspec-core-2.12.2/lib/rspec/core/configuration.rb:789:inblock in load_spec_files' from /Users/jameswest/.rvm/gems/ruby-1.9.3-p362/gems/rspec-core-2.12.2/lib/rspec/core/configuration.rb:789:in each' from /Users/jameswest/.rvm/gems/ruby-1.9.3-p362/gems/rspec-core-2.12.2/lib/rspec/core/configuration.rb:789:inload_spec_files' from /Users/jameswest/.rvm/gems/ruby-1.9.3-p362/gems/rspec-core-2.12.2/lib/rspec/core/command_line.rb:22:in run' from /Users/jameswest/.rvm/gems/ruby-1.9.3-p362/gems/rspec-core-2.12.2/lib/rspec/core/runner.rb:80:inrun' from /Users/jameswest/.rvm/gems/ruby-1.9.3-p362/gems/rspec-core-2.12.2/lib/rspec/core/runner.rb:17:in `block in autorun'

Growl not found: please install Growl and try again

答案1

你必须安装咆哮应用程序在您的系统中。

相关内容