about summary refs log tree commit homepage
path: root/test
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2012-01-27 19:54:41 +0000
committerEric Wong <normalperson@yhbt.net>2012-01-27 19:58:00 +0000
commitc8abf6a06c0bd7eb1dfc8457ef1c31de31e7715b (patch)
tree3b8ffabdb9496501d24a79393215c58140e3f6b2 /test
parent79ae7110b37f9b82151cc61960d93a33bb543669 (diff)
downloadunicorn-c8abf6a06c0bd7eb1dfc8457ef1c31de31e7715b.tar.gz
I doubt anybody would attempt to run ancient, unsupported versions
of Rails on the latest (unreleased, even) versions of Ruby...
Diffstat (limited to 'test')
-rw-r--r--test/rails/test_rails.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/rails/test_rails.rb b/test/rails/test_rails.rb
index ab8f0a2..9cf92c0 100644
--- a/test/rails/test_rails.rb
+++ b/test/rails/test_rails.rb
@@ -45,7 +45,10 @@ end
 
 ROR_V = UNICORN_RAILS_TEST_VERSION.split(/\./).map { |x| x.to_i }
 RB_V = RUBY_VERSION.split(/\./).map { |x| x.to_i }
-if RB_V[0] >= 1 && RB_V[1] >= 9
+if RB_V[0] >= 2
+  warn "skipping Ruby 2.0+ test with Rails <3"
+  do_test = false
+elsif RB_V[0] >= 1 && RB_V[1] >= 9
   if RB_V[2] >= 2
     warn "Ruby 1.9.2+ is not compatible with Rails 2.x"
     do_test = false