Commit b23f1bf1 authored by nmilojevic1's avatar nmilojevic1 Committed by Aleksei Lipniagov

Simplify specs for new Redis instance

- Introduce redis_new_instance_shared_examples
parent 94dd7d29
......@@ -13,7 +13,7 @@ module Gitlab
private
def redis_instance_class_name
Gitlab::Redis.const_get(redis_instance_name.camelize , false)
Gitlab::Redis.const_get(redis_instance_name.camelize, false)
end
def metric_prefix
......
......@@ -4,5 +4,5 @@ require 'spec_helper'
require_relative '../simple_check_shared'
RSpec.describe Gitlab::HealthChecks::Redis::RedisCheck do
include_examples 'simple_check', 'redis_ping', 'Redis', 'PONG'
include_examples 'simple_check', 'redis_ping', 'Redis', true
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment