I just did the modification and the problem remains. Is there a way to output the final value of the ruby variable so I can check if it matches the actual path to ruby?
Wes Gamble wrote: > > From a previous post - the bottom line is that even in Cygwin, > File::ALT_SEPARATOR returns "\". In autotest.rb (under ZenTest/lib), the > method named "ruby" which attempts to return the path to the executable > doesn't work correctly on Windows. > > See below. > > I ran into this as well - see my posts here: > http://chrisdpratt.com/2007/09/04/rails-rspec-autotest-redgreen-and-snarl-reasons-i-dont-like-windows/ > > There's a bug in ZenTest: > http://rubyforge.org/tracker/index.php?func=detail&aid=14203&group_id=419&atid=1678 > > The fix is to remove the smartness in zentest that attempts to construct > a proper path to Ruby on Windows (I assume that's why they put it in > there). > > So in the autotest.rb file in the ZenTest 3.6.1 gem, make sure that the > definition of the "ruby" method looks like this: > > # determine and return the path of the ruby executable. > def ruby > ruby = File.join(Config::CONFIG['bindir'], > Config::CONFIG['ruby_install_name']) > > return ruby > end > > and then autotest will be able to find your ruby executable. > > Note that I never got the red/green thing working in snarl although it > does work in the command window if I do it there by hand. > > Wes > > > pangel wrote: >> Hey, I'm trying to configure autotest with rspec on cygwin but something >> is >> going wrong. >> >> I made a very simple testing environment with a user.rb and user_spec.rb >> file. Rspec works fine, but autotest outputs nothing - it just stays >> here, >> idle. ^C doesn't display anything more. >> >> I can see it's running because I added require 'autotest/snarl' in my >> .autotest file. And Snarl tells me "Autotest was started" when I start >> it, >> and "autotest was reset" when I ^C. >> >> But absolutely no log, no information. Nothing happens either when I >> modify >> a user.rb/user_spec.rb. Very strange. >> >> * Windows XP SP2 >> * Ruby 1.8.6 >> * RSpec 1.0.8 >> * Zentest 3.6.1 >> > _______________________________________________ > rspec-users mailing list > [email protected] > http://rubyforge.org/mailman/listinfo/rspec-users > > -- View this message in context: http://www.nabble.com/autotest-displays-no-output-tf4725432.html#a13514100 Sent from the rspec-users mailing list archive at Nabble.com. _______________________________________________ rspec-users mailing list [email protected] http://rubyforge.org/mailman/listinfo/rspec-users
