When I work with a .html.erb file, the autotest rspec on rails stuff
doesn’t
understand the file to map it to the right test. I wanted to submit a
patch
for this, but I’m unsure where the specs would be to update. I found the
necessary mapping in rspec_autotest.rb, but I can’t find any specs
anywhere.
Help?
I just need to have
/app/views/coupon/index.html.erb to map to
/spec/views/coupon/index_spec.rb
When I work with a .html.erb file, the autotest rspec on rails stuff doesn’t
understand the file to map it to the right test. I wanted to submit a patch
for this, but I’m unsure where the specs would be to update. I found the
necessary mapping in rspec_autotest.rb, but I can’t find any specs anywhere.
Help?
I just need to have
/app/views/coupon/index.html.erb to map to /spec/views/coupon/index_spec.rb
There will soon (like in the next day or two I think) be a ZenTest
release which will make setting $VERBOSE obsolete. By default you
won’t get the Dunno messages, but you can choose to get them by
running autotest in verbose mode:
autotest -v
The benefit of doing that is it spots files that you may not have
spec’d that you want spec’d. On the flip side you end up with a bunch
of noise but you can eliminate that w/ the :initialize hook:
Autotest.add_hook :initialize do |at|
at.add_exception ‘some_file_i_want_ignored’
end
That goes in .autotest in the root of your project, where you type the
autotest command.
The benefit of doing that is it spots files that you may not have
spec’d that you want spec’d. On the flip side you end up with a bunch
of noise but you can eliminate that w/ the :initialize hook:
Autotest.add_hook :initialize do |at|
at.add_exception ‘some_file_i_want_ignored’
end
That goes in .autotest in the root of your project, where you type the
autotest command.
I’m probably too much of a Ruby coder, but an Exception is an existing
Ruby class. add_exception seems strange to me.
How about at.except, at.ignore_file or at.ignore ?
I like the last one best.