From: "Phlip" <phlip2...@gmail.com>
Date: Thu, 30 Nov 2006 19:58:39 -0800
Local: Thurs, Nov 30 2006 10:58 pm
Subject: Re: [Rails] Re: TDD killing my joy of Rails
Brian Hogan wrote: My command line: > Even better... install ZenTest > gem install ZenTest > autotest --rails > Tests run when you save the corresponding file. Makes it almost too easy. trigger 'rake recent' `find test -name \\*.rb` app/*/*.rb The utterly ugly and distastefully hacked-together contents of trigger are Any editor, folks. Any editor. I don't even need to look at the console to -- #!/usr/bin/env ruby # lazy-loop until a file changes, then run a command def syntax() # TODO support ** syntax() if 0 == ARGV.size command = ARGV.shift def anyFileChanged() ARGV.each do |fn| # TODO option to do Dir here return anyChanged anyFileChanged() # prime the pump while true sound = got ? 'drumloop.wav' : 'jaguar.wav' weWin32 = RUBY_PLATFORM.include?('mswin32') if weWin32 end #One way is to use Win32API: SND_MEMORY = 0x00000004 # from "mmsystem.h" def playSound() pPlaySound = Win32API.new("winmm", "PlaySound", ['P', 'L', 'L'], 'I') # play from file: # play from memory: end You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||