Getting rspec crap in a better place

This commit is contained in:
Dan Buch
2012-03-04 12:03:34 -05:00
parent 57f63fd62f
commit d9bfc245e0
9 changed files with 225 additions and 8 deletions

6
rails/map-mash/script/autospec Executable file
View File

@@ -0,0 +1,6 @@
#!/usr/bin/env ruby
gem 'test-unit', '1.2.3' if RUBY_VERSION.to_f >= 1.9
ENV['RSPEC'] = 'true' # allows autotest to discover rspec
ENV['AUTOTEST'] = 'true' # allows autotest to run w/ color on linux
system((RUBY_PLATFORM =~ /mswin|mingw/ ? 'autotest.bat' : 'autotest'), *ARGV) ||
$stderr.puts("Unable to find autotest. Please install ZenTest or fix your PATH")