diff --git a/spec/travis/github/services/fetch_config_spec.rb b/spec/travis/github/services/fetch_config_spec.rb
index <HASH>..<HASH> 100644
--- a/spec/travis/github/services/fetch_config_spec.rb
+++ b/spec/travis/github/services/fetch_config_spec.rb
@@ -38,7 +38,7 @@ describe Travis::Github::Services::FetchConfig do
     end
 
     it "returns { '.result' => 'parse_error' } if the .travis.yml is invalid" do
-      GH.stubs(:[]).returns("\tfoo: Foo")
+      GH.stubs(:[]).returns({ "content" => ["\tfoo: Foo"].pack("m") })
       result['.result'].should == 'parse_error'
     end
fetch_config: Fix parse_error spec

The error raised wasn't a parse error, so the spec wasn't testing what
it was claiming to test.