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

Version Path
honeybadger-2.4.0 vendor/gems/ruby/1.9.1/gems/codeclimate-test-reporter-0.4.0/spec/spec_helper.rb
honeybadger-2.4.0 vendor/gems/ruby/2.1.0/gems/codeclimate-test-reporter-0.4.0/spec/spec_helper.rb
honeybadger-2.4.0 vendor/gems/ruby/2.2.0/gems/codeclimate-test-reporter-0.4.0/spec/spec_helper.rb
construi-0.6.0 vendor/bundle/ruby/1.9.1/gems/codeclimate-test-reporter-0.4.6/spec/spec_helper.rb
construi-0.5.0 vendor/bundle/ruby/1.9.1/gems/codeclimate-test-reporter-0.4.6/spec/spec_helper.rb
construi-0.4.0 vendor/bundle/ruby/1.9.1/gems/codeclimate-test-reporter-0.4.6/spec/spec_helper.rb
construi-0.2.0 vendor/bundle/ruby/1.9.1/gems/codeclimate-test-reporter-0.4.6/spec/spec_helper.rb
construi-0.1.0 vendor/bundle/ruby/1.9.1/gems/codeclimate-test-reporter-0.4.6/spec/spec_helper.rb
codeclimate-test-reporter-0.4.7 spec/spec_helper.rb
codeclimate-test-reporter-0.4.6 spec/spec_helper.rb
codeclimate-test-reporter-0.4.5 spec/spec_helper.rb
codeclimate-test-reporter-0.4.4 spec/spec_helper.rb
codeclimate-test-reporter-0.4.3 spec/spec_helper.rb
codeclimate-test-reporter-0.4.2 spec/spec_helper.rb
codeclimate-test-reporter-0.4.1 spec/spec_helper.rb
codeclimate-test-reporter-0.4.0 spec/spec_helper.rb
codeclimate-test-reporter-0.3.0 spec/spec_helper.rb
codeclimate-test-reporter-0.2.0 spec/spec_helper.rb
codeclimate-test-reporter-0.1.1 spec/spec_helper.rb
codeclimate-test-reporter-0.1.0 spec/spec_helper.rb