Displaying 5 results from an estimated 5 matches for "add_exception".
2008 Feb 06
1
RSpec 1.1.3 + ZenTest 3.9.1 + Rails 1.2.6 do NOT ignore folders ^vendor/*
...ons/flags/bv.gif
in the output. Am I the only one?
After reading the code in rspec_on_rails/lib/autotest/rails_rspec.rb
Autotest.add_hook :initialize do |at|
%w{^config/ ^coverage/ ^db/ ^doc/ ^log/ ^public/ ^script
^vendor/rails ^vendor/plugins previous_failures.txt}.each do
|exception|
at.add_exception(exception)
end
I think the noise is not normal. Maybe I should write some specs to
verify this code is working ;-)
As David C. explained in his blog, I also have a .autotest in my HOME:
Autotest.add_hook :initialize do |at|
%w{.svn .hg .git .rhtml .png .txt .sh .project .rjs .rake .jpg .xml
....
2008 Jan 13
10
.html.erb files and autotest
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
2008 Jan 11
5
changes in rspec''s trunk and autotest
This applies to anyone using rspec''s trunk from >= 3220 with ZenTest <= 3.7.2.
Anyone else, feel free to move on....
The next release of ZenTest, coming soon, includes some changes that
improve the relationship between Autotest, it''s subclasses (like those
in rspec) and .autotest, the file that you can use to plug into
autotest''s hooks to extend/modify
2011 May 08
1
Spork + Autotest Failure
....2
$ gem install autotest-fsevent
$ gem install autotest-growl
My ~/.autotest is as follows:
require ''autotest/growl''
require ''autotest/fsevent''
Autotest.add_hook :initialize do |autotest|
%w{.git .svn .hg .DS_Store ._* vendor .idea}.each {|exception|
autotest.add_exception(exception) }
false
end
Spork is set up as indicated in Listing 3.13 as per the above link to
railstutorial.org.
When I get into the actual testing / development I start autotest off
with
If I run `spork& sleep 5 && autotest -vw` (thought I''d try to get some
additional outpu...
2008 Jun 03
5
Autotest/RSpec 1.1.4/Rails 2.1 Infinite Loop?
I just got back from RailsConf, and upgraded on of my development apps
to 2.1, and now autotest is going into an infinite loop. It runs tests
continuously instead of waiting for files to be saved before rerunning.
Has anybody else seen this, or know how to get around it?
Thanks,
Andrew