Test for ruby version in one place

This adds a RUBY_1 constant that the entire test suite can use.