test/helper.rb in nunes-0.4.0 vs test/helper.rb in nunes-0.5.0
- old
+ new
@@ -6,10 +6,12 @@
# require everything in the support directory
root = Pathname(__FILE__).dirname.join("..").expand_path
Dir[root.join("test/support/**/*.rb")].each { |f| require f }
+puts "Running tests against rails version #{Rails.version}"
+
class ActionController::TestCase
include AdapterTestHelpers
end
class ActionMailer::TestCase
@@ -18,8 +20,10 @@
class ActiveSupport::TestCase
include AdapterTestHelpers
end
-require "rails_app/config/environment"
+rails_version = ENV["RAILS_VERSION"] || "4.2.5"
+
+require "rails_app_#{rails_version}/config/environment"
require "nunes"