lib/roar-rails.rb in roar-rails-0.1.2 vs lib/roar-rails.rb in roar-rails-0.1.3
- old
+ new
@@ -26,15 +26,21 @@
def self.rails3_1?
::Rails::VERSION::MAJOR == 3 && ::Rails::VERSION::MINOR == 1
end
+ def self.rails3_2?
+ ::Rails::VERSION::MAJOR == 3 && ::Rails::VERSION::MINOR == 2
+ end
+
if rails3_0?
require 'roar/rails/rails3_0_strategy'
elsif rails3_1?
require 'roar/rails/rails3_1_strategy'
- else
+ elsif rails3_2?
require 'roar/rails/rails3_2_strategy'
+ else
+ require 'roar/rails/rails4_0_strategy'
end
autoload("TestCase", "roar/rails/test_case")
autoload("ControllerAdditions", "roar/rails/controller_additions")
end