diff --git a/test/test_helper.rb b/test/test_helper.rb
index <HASH>..<HASH> 100644
--- a/test/test_helper.rb
+++ b/test/test_helper.rb
@@ -9,7 +9,7 @@ class Test::Unit::TestCase
     define_method("test_#{name.gsub(/\s+/,'_')}".to_sym, block)
   end
 
-  def environment
+  def default_environment
     { "RACK_ENV" => "test",
       "JANKY_CONFIG_DIR" => File.dirname(__FILE__),
       "JANKY_GITHUB_USER" => "hubot",
@@ -24,6 +24,16 @@ class Test::Unit::TestCase
     }
   end
 
+  def environment
+    env = default_environment
+    ENV.each do |key, value|
+      if key =~ /^JANKY_/
+        env[key] = value
+      end
+    end
+    env
+  end
+
   def gh_commit(sha1 = "HEAD")
     Janky::GitHub::Commit.new(
       sha1,
allow overriding settings in test environment