summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2019-04-01 18:49:03 +0200
committerRémy Coutable <remy@rymai.me>2019-04-02 10:21:34 +0200
commit7c26c47cb55613babcbbbd329ffec1ab4b79378f (patch)
tree4027ec66dc20f8dae789a5edc742f5d0d156c5b8 /spec
parent1b6fe3ae226e4c6f481c90c886e242fcd96ab11b (diff)
downloadgitlab-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.rb11
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