Sha256: 915685b25b50134c50b8478af198a047e420dc3ec26d846c7209c2d5507bfda1

Contents?: true

Size: 723 Bytes

Versions: 10

Compression:

Stored size: 723 Bytes

Contents

$LOAD_PATH.unshift File.expand_path("../../lib", __FILE__)

if ENV["CODECLIMATE_REPO_TOKEN"]
  require "codeclimate-test-reporter"
  ::SimpleCov.add_filter "helper"
  CodeClimate::TestReporter.start
end

require "zhong"
require "minitest/autorun"
require "rack/test"

ENV["RACK_ENV"] = ENV["RAILS_ENV"] = "test"

def assert_contains(expected_substring, string, *args)
  assert string.include?(expected_substring), *args
end

Zhong.logger = begin
  l = Logger.new(STDOUT)
  l.level = Logger::ERROR
  l
end

Zhong.redis = Redis.new(url: ENV["REDIS_URL"] || "redis://localhost/13")

def test_default_config
  @default_config ||= {
    redis: Zhong.redis,
    logger: Zhong.logger,
    long_running_timeout: 10.seconds
  }
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
zhong-0.3.0 test/helper.rb
zhong-0.2.4 test/helper.rb
zhong-0.2.3 test/helper.rb
zhong-0.2.2 test/helper.rb
zhong-0.2.1 test/helper.rb
zhong-0.2.0 test/helper.rb
zhong-0.1.9 test/helper.rb
zhong-0.1.8 test/helper.rb
zhong-0.1.7 test/helper.rb
zhong-0.1.6 test/helper.rb