diff --git a/Gemfile b/Gemfile
index bccde6664ddfea1807c12512eba933d5fbec0c44..a927c3e4e62d9396145513f5f2da6afaf92187ab 100644
--- a/Gemfile
+++ b/Gemfile
@@ -153,6 +153,9 @@ group :development, :test do
   gem "launchy"
   gem 'factory_girl_rails'
 
+  # Prevent occasions where minitest is not bundled in packaged versions of ruby (see #3826)
+  gem 'minitest'
+  
   # Generate Fake data
   gem "ffaker"
 
diff --git a/Gemfile.lock b/Gemfile.lock
index c06a1bd09cc9d264485423b0ba3b736797ffdc15..3080651ba29ec4c35556ea20e28e52636f1fbdaa 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -263,6 +263,7 @@ GEM
       treetop (~> 1.4.8)
     method_source (0.8.1)
     mime-types (1.23)
+    minitest (4.7.4)
     modernizr (2.6.2)
       sprockets (~> 2.0)
     multi_json (1.7.2)
@@ -538,6 +539,7 @@ DEPENDENCIES
   kaminari (~> 0.14.1)
   launchy
   letter_opener
+  minitest
   modernizr (= 2.6.2)
   mysql2
   omniauth (~> 1.1.3)