问题描述
错误信息:E:WorkWeb projectMyWorkBlog>spec spec/models/*c:/ruby/lib/ruby/gems/1.8/gems/rspec-1.1.9/lib/spec/runner/options.rb:229:in `files_to_load': File or directory not found: spec/models/* (RuntimeError) from c:/ruby/lib/ruby/gems/1.8/gems/rspec-1.1.9/lib/spec/runner/options.rb:221:in `each' from c:/ruby/lib/ruby/gems/1.8/gems/rspec-1.1.9/lib/spec/runner/options.rb:221:in `files_to_load' from c:/ruby/lib/ruby/gems/1.8/gems/rspec-1.1.9/lib/spec/runner/options.rb:98:in `run_examples' from c:/ruby/lib/ruby/gems/1.8/gems/rspec-1.1.9/lib/spec/runner/command_line.rb:10:in `run' from c:/ruby/lib/ruby/gems/1.8/gems/rspec-1.1.9/bin/spec:4 from c:/ruby/bin/spec:19:in `load' from c:/ruby/bin/spec:19models里面只有两个generate出来的空spec文件,测试跑不起来,抓狂了一天也没解决,希望高手能给于指点问题补充:问题还是没解决,rake也rake不动,我全部删了,换mac,谢谢你的回答
解决方案
这是操作系统的问题,你直接rake spec算了。