lib/roar-rails.rb in roar-rails-0.1.1 vs lib/roar-rails.rb in roar-rails-0.1.2
- old
+ new
@@ -22,13 +22,19 @@
module Rails
def self.rails3_0?
::Rails::VERSION::MAJOR == 3 && ::Rails::VERSION::MINOR == 0
end
+ def self.rails3_1?
+ ::Rails::VERSION::MAJOR == 3 && ::Rails::VERSION::MINOR == 1
+ end
+
if rails3_0?
require 'roar/rails/rails3_0_strategy'
- else
+ elsif rails3_1?
require 'roar/rails/rails3_1_strategy'
+ else
+ require 'roar/rails/rails3_2_strategy'
end
autoload("TestCase", "roar/rails/test_case")
autoload("ControllerAdditions", "roar/rails/controller_additions")
end