【发布时间】:2012-10-21 15:03:21
【问题描述】:
我有一个 Rails 应用程序,我刚刚扔掉了保护和 minitest,我的 gaurd 文件是
guard 'minitest', :cli => '--drb --format doc --color' do
# with Minitest::Unit
watch(%r|^test/(.*)\/?test_(.*)\.rb|)
watch(%r|^lib/(.*)([^/]+)\.rb|) { |m| "test/#{m[1]}test_#{m[2]}.rb" }
watch(%r|^test/test_helper\.rb|) { "test" }
# Rails
watch(%r|^app/controllers/(.*)\.rb|) { |m| "test/functional/#{m[1]}_test.rb" }
watch(%r|^app/helpers/(.*)\.rb|) { |m| "test/helpers/#{m[1]}_test.rb" }
watch(%r|^app/models/(.*)\.rb|) { |m| "test/unit/#{m[1]}_test.rb" }
end
但是当我运行守卫时,我得到一个命令提示符
bundle exec guard
22:14:12 - INFO - Guard uses TerminalTitle to send notifications.
22:14:12 - INFO - Guard is now watching at '/Users/trace/Sites/application'
1.9.3 (main):0 > 2 + 2
=> 4
为什么我会收到这个提示。任何想法......这是我正在使用的一些宝石
更新...
当我运行 all minitest 时,测试就会运行...但是为什么我必须运行它...任何想法
【问题讨论】:
标签: ruby-on-rails ruby ruby-on-rails-3 guard minitest