Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ruby-on-rails-3/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 3 轨道3和x2B;Rspec 2+;自动测试:自动测试不加载_Ruby On Rails 3_Rspec_Rspec2_Autotest - Fatal编程技术网

Ruby on rails 3 轨道3和x2B;Rspec 2+;自动测试:自动测试不加载

Ruby on rails 3 轨道3和x2B;Rspec 2+;自动测试:自动测试不加载,ruby-on-rails-3,rspec,rspec2,autotest,Ruby On Rails 3,Rspec,Rspec2,Autotest,我已安装autotest和Rspec2,但autotest不想运行。“自动测试”文件夹尚未创建(我已手动创建并添加了discover.rb),当我运行“自动测试”时,我会反复考虑这一点: $ autotest loading autotest/rails_rspec2 style: RailsRspec2 --------------------------------------------------------------------------------

我已安装autotest和Rspec2,但autotest不想运行。“自动测试”文件夹尚未创建(我已手动创建并添加了discover.rb),当我运行“自动测试”时,我会反复考虑这一点:

$ autotest
loading autotest/rails_rspec2
style: RailsRspec2


--------------------------------------------------------------------------------




















$ 
我已经用自动测试很长时间了,现在它死了。有什么原因吗


感谢

需要做什么取决于rspec版本,但是对于上面提到的2.3版本,来自上述rspec wiki的说明告诉您: “确保项目根目录中有一个.rspec文件。该文件告诉rspec告诉Autotest加载rspec的Autotest扩展名。”

您可以像
touch.rspec
该文件不需要有任何内容,但必须存在。
如果您安装了rspec-rails,您还可以运行
rails g rspec:install
,它将为您创建此文件。默认内容只是一个选项--color

需要执行的操作取决于rspec版本,但对于上面的2.3,上述rspec wiki中的说明告诉您: “确保项目根目录中有一个.rspec文件。该文件告诉rspec告诉Autotest加载rspec的Autotest扩展名。”

您可以像
touch.rspec
该文件不需要有任何内容,但必须存在。 如果您安装了rspec-rails,您还可以运行
rails g rspec:install
,它将为您创建此文件。默认内容仅为一个选项
--color