search for: add_hook

Displaying 10 results from an estimated 10 matches for "add_hook".

2008 Feb 06
1
RSpec 1.1.3 + ZenTest 3.9.1 + Rails 1.2.6 do NOT ignore folders ^vendor/*
...stylesheets/themes/default/close.gif Dunno! db/migrate/021_create_community_bookmarks.rb Dunno! vendor/plugins/cache_fu/test/local_cache_test.rb Dunno! public/images/icons/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 Davi...
2011 May 08
1
Spork + Autotest Failure
...rvm & I''m on Mac OS X): $ gem install autotest -v 4.4.6 $ gem install autotest-rails-pure -v 4.1.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...
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
2008 Feb 19
0
Playing Sounds with Autotest/RSpec on Cygwin
...sound after autotest runs. Add the code below to your ~/.autotest file. Modify the path of the .wav file to the sounds you want to play on your system. Cheers, Andy vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv Module AddSoundtoAutoTestforCygwin Autotest.add_hook :ran_command do |at| results = [at.results].flatten.join("\n") output = results.slice(/(\d+)\s+examples?,\s*(\d+)\s+failures?(,\s*(\d+)\s+not implemented)?/) if output if $~[2].to_i > 0 `cat /cygdrive/c/i386/ringout.wav > /dev/dsp` # failure else...
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
2019 Apr 07
2
Post login scripts environment
> On 7 April 2019 18:55 Aki Tuomi via dovecot <dovecot at dovecot.org> wrote: > > > > On 7 April 2019 18:45 Andr? Rodier via dovecot <dovecot at dovecot.org> wrote: > > > > > > On Sun, 2019-04-07 at 17:49 +0300, Aki Tuomi via dovecot wrote: > > > > On 7 April 2019 17:26 Andr? Rodier via dovecot < dovecot at dovecot.org> wrote:
2007 Oct 04
7
Using Predicates to look at an array..
Hi all, I have an array of shipping_type''s being returned, and I want to see what is in there. In the past I have done: shipping_type.include?(Cart::SHIPPING_TYPE_REGULAR).should be_true This works, but looks really ugly.. It just doesn''t roll of the tongue very well. I then looked up the use of Predicates, which I had been using, but hadn''t realized:
2006 Dec 21
7
rspec_autotest no longer re-runs tests with rspec 0.7.5
Has anyone else encountered this problem? What I mean is, rspec_autotest runs all specs, then waits. When you change a spec, it reruns that spec. However, if that spec now passes, it should run the whole suite again, so you can see the next one to work on. It no longer does this. This renders it somewhat useless. Does anyone have autotest working with rspec 0.7.5, or does anyone have any
2007 Apr 13
21
ZenTest autotest now handles RSpec, yay!
...ttp://blog.zenspider.com/archives/2007/04/zentest_version_350_has_been_released.html That''s a great news. Josh also shared with me a quick hack to make autotest work with only the RSpec plugin installed. Add the following into your ~/.autotest file http://pastie.caboo.se/53535 Autotest.add_hook :initialize do |autotest| if autotest.is_a? RspecRailsAutotest autotest.spec_command = ''script/spec --options spec/spec.opts'' if File.exist? ''script/spec'' end end -Matt -------------- next part -------------- An HTML attachment was scrubbed... URL: http...