autotest/discover.rb in agent-0.1.0 vs autotest/discover.rb in agent-0.9.0
- old
+ new
@@ -1,8 +1,16 @@
-Autotest.add_discovery { 'rspec2' }
+Autotest.add_discovery { 'rspec2' }
+
+if RUBY_PLATFORM =~ /java/
+ Autotest.add_hook :initialize do |at|
+ def at.ruby
+ "#{super} --1.9"
+ end
+ end
+end
\ No newline at end of file