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 ...@@ -13,7 +13,7 @@ module Gitlab
private private
def redis_instance_class_name def redis_instance_class_name
Gitlab::Redis.const_get(redis_instance_name.camelize , false) Gitlab::Redis.const_get(redis_instance_name.camelize, false)
end end
def metric_prefix def metric_prefix
......
...@@ -4,5 +4,5 @@ require 'spec_helper' ...@@ -4,5 +4,5 @@ require 'spec_helper'
require_relative '../simple_check_shared' require_relative '../simple_check_shared'
RSpec.describe Gitlab::HealthChecks::Redis::RedisCheck do RSpec.describe Gitlab::HealthChecks::Redis::RedisCheck do
include_examples 'simple_check', 'redis_ping', 'Redis', 'PONG' include_examples 'simple_check', 'redis_ping', 'Redis', true
end 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