diff options
author | Rémy Coutable <remy@rymai.me> | 2019-04-01 18:49:03 +0200 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2019-04-02 10:21:34 +0200 |
commit | 7c26c47cb55613babcbbbd329ffec1ab4b79378f (patch) | |
tree | 4027ec66dc20f8dae789a5edc742f5d0d156c5b8 /spec | |
parent | 1b6fe3ae226e4c6f481c90c886e242fcd96ab11b (diff) | |
download | gitlab-ce-7c26c47cb55613babcbbbd329ffec1ab4b79378f.tar.gz |
[CE] Reduce diff with EE in spec/models/concerns/prometheus_adapter_spec.rb
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'spec')
-rw-r--r-- | spec/models/concerns/prometheus_adapter_spec.rb | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/spec/models/concerns/prometheus_adapter_spec.rb b/spec/models/concerns/prometheus_adapter_spec.rb index 7148261b1e4..db20a8b4701 100644 --- a/spec/models/concerns/prometheus_adapter_spec.rb +++ b/spec/models/concerns/prometheus_adapter_spec.rb @@ -6,14 +6,15 @@ describe PrometheusAdapter, :use_clean_rails_memory_store_caching do include PrometheusHelpers include ReactiveCachingHelpers - class TestClass - include PrometheusAdapter - end - let(:project) { create(:prometheus_project) } let(:service) { project.prometheus_service } - let(:described_class) { TestClass } + let(:described_class) do + Class.new do + include PrometheusAdapter + end + end + let(:environment_query) { Gitlab::Prometheus::Queries::EnvironmentQuery } describe '#query' do |