Sha256: 107d881ba9a41a9a02259ae2acc74e1cd637295bb34275a186004af7ae30c73e
Contents?: true
Size: 787 Bytes
Versions: 20
Compression:
Stored size: 787 Bytes
Contents
require 'rubygems' require 'bundler/setup' require 'artifice' require 'pry' require 'codeclimate-test-reporter' ENV['CODECLIMATE_REPO_TOKEN'] = "172754c1bf9a3c698f7770b9fb648f1ebb214425120022d0b2ffc65b97dff531" ENV['CODECLIMATE_API_HOST'] = "http://cc.dev" def inflate(string) reader = Zlib::GzipReader.new(StringIO.new(string)) reader.read end class FakeCodeClimateEndpoint def call(env) @env = env [ 200, {"Content-Type" => 'text/plain'}, ["Received"] ] end def path_info @env["PATH_INFO"] end def request_body @env["rack.input"].string end def content_type @env["CONTENT_TYPE"] end def http_content_encoding @env["HTTP_CONTENT_ENCODING"] end def http_user_agent @env["HTTP_USER_AGENT"] end end
Version data entries
20 entries across 18 versions & 3 rubygems