开发者

autospec can't run tests after touching a file

I've got two files in app/views/users

-rw-r--r-- 1 create.html.erb

-rw-r--r--@ 1 new.html.erb

With autospec running and all my tests passing, I touch 'new.html.erb' and and growl notifies my that my tests can't run and autospec outputs:

0 examples, 0 failures

If I start autospec again all my tests pass.

If I touch 'create.html.erb' nothing happens. My tests continue to run.

Note the ampersand in the output of ls. I don't know what that means but it gets added after autospec runs.

Can anyone help me with this confusing error? I am a rspec/rails noob.

Many thanks.

EDIT:

I noticed the t开发者_JAVA百科ests were running against:

/spec/views/users/new.html.erb_spec.rb

I see that this tutorial (which I recommend) advises to delete these files:

"By the way, I’m not partial to separate tests for views, which I’ve found to be quite brittle, so let’s remove them, together with the rarely used helper spec:"

$ rm -rf spec/views

$ rm -f spec/helpers/pages_helper_spec.rb

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜