diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index <HASH>..<HASH> 100755
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -11,8 +11,12 @@ end
 
 require 'pwwka'
 require 'pwwka/test_handler'
-require "active_support/isolated_execution_state"
-require 'active_support/core_ext/hash'
+begin
+  require 'active_support/core_ext/hash'
+rescue NameError
+  require "active_support/isolated_execution_state"
+  require 'active_support/core_ext/hash'
+end
 
 # These are required in pwwka proper, but they are guarded to not cause
 # an error if missing.  Requiring here so their absence will fail the tests
Backwards compatible isolated_execution_state require