test/test_helper.rb in has_translations-0.3.3 vs test/test_helper.rb in has_translations-0.3.4
- old
+ new
@@ -1,15 +1,11 @@
require 'rubygems'
require 'test/unit'
-case ENV['RAILS_VERSION']
-when '3.0' then
- gem 'activerecord', '~> 3.0.0'
- gem 'activesupport', '~> 3.0.0'
-else
- gem 'activerecord', '~> 2.3.0'
- gem 'activesupport', '~> 2.3.0'
-end
+rails_version = "~> #{ENV['RAILS_VERSION'] || '3.0.0'}"
+
+gem 'activerecord', rails_version
+gem 'activesupport', rails_version
require 'active_record'
require 'logger'
require 'has_translations'