diff --git a/spec/octokit/client/contents_spec.rb b/spec/octokit/client/contents_spec.rb
index <HASH>..<HASH> 100644
--- a/spec/octokit/client/contents_spec.rb
+++ b/spec/octokit/client/contents_spec.rb
@@ -1,4 +1,5 @@
 require 'helper'
+require 'tempfile'
 
 describe Octokit::Client::Contents do
Adding require to spec to fix JRuby and Rubinius

The spec appears to fail currently in JRuby and Rubinius because of this missing require.