From 59a625b1732915891baba8fc82d47798bbabad13 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 3 Jun 2010 23:51:34 +0000 Subject: tests: disable Rails 2.x tests under Ruby 1.9.2 They are not compatible, and the Rails 3 tests will be completely separate. --- test/rails/test_rails.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test') diff --git a/test/rails/test_rails.rb b/test/rails/test_rails.rb index 6742722..4b3857f 100644 --- a/test/rails/test_rails.rb +++ b/test/rails/test_rails.rb @@ -46,6 +46,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[2] >= 2 + warn "Ruby 1.9.2+ is not compatible with Rails 2.x" + do_test = false + end unless ROR_V[0] >= 2 && ROR_V[1] >= 3 warn "skipping Ruby >=1.9 test with Rails <2.3" do_test = false -- cgit v1.2.3-24-ge0c7