search for: old_spec_command

Displaying 1 result from an estimated 1 matches for "old_spec_command".

Did you mean: old_spec_commands
2007 Aug 14
0
Using rspec in a non-rails project w/ autotest
...ec (on externals, or simply frozen) 2. Add autotest/discover.rb: Autotest.add_discovery do "myproj" end 3. Add autotest/myproj.rb: require File.dirname(__FILE__) + "/../vendor/plugins/rspec/rspec/lib/ autotest/rspec" class Autotest::Myproj < Autotest::Rspec alias :old_spec_commands :spec_commands def spec_commands [File.dirname(__FILE__) + "/../vendor/plugins/rspec/rspec/bin/ spec"] + old_spec_commands end end Autotest should now run fine with trunk rspec (it also means you don''t need the rspec gem installed). Happy hacking, Scott