summaryrefslogtreecommitdiff
path: root/spec/tooling/danger/product_intelligence_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/tooling/danger/product_intelligence_spec.rb')
-rw-r--r--spec/tooling/danger/product_intelligence_spec.rb22
1 files changed, 1 insertions, 21 deletions
diff --git a/spec/tooling/danger/product_intelligence_spec.rb b/spec/tooling/danger/product_intelligence_spec.rb
index 17ef67e64fe..4ab911b6590 100644
--- a/spec/tooling/danger/product_intelligence_spec.rb
+++ b/spec/tooling/danger/product_intelligence_spec.rb
@@ -12,7 +12,7 @@ RSpec.describe Tooling::Danger::ProductIntelligence do
subject(:product_intelligence) { fake_danger.new(helper: fake_helper) }
let(:fake_danger) { DangerSpecHelper.fake_danger.include(described_class) }
- let(:changed_files) { ['metrics/counts_7d/test_metric.yml', 'doc/development/usage_ping/dictionary.md'] }
+ let(:changed_files) { ['metrics/counts_7d/test_metric.yml'] }
let(:changed_lines) { ['+tier: ee'] }
before do
@@ -20,22 +20,6 @@ RSpec.describe Tooling::Danger::ProductIntelligence do
allow(fake_helper).to receive(:changed_lines).and_return(changed_lines)
end
- describe '#need_dictionary_changes?' do
- subject { product_intelligence.need_dictionary_changes? }
-
- context 'when changed files do not contain dictionary changes' do
- let(:changed_files) { ['config/metrics/counts_7d/test_metric.yml'] }
-
- it { is_expected.to be true }
- end
-
- context 'when changed files already contains dictionary changes' do
- let(:changed_files) { ['doc/development/usage_ping/dictionary.md'] }
-
- it { is_expected.to be false }
- end
- end
-
describe '#missing_labels' do
subject { product_intelligence.missing_labels }
@@ -109,10 +93,6 @@ RSpec.describe Tooling::Danger::ProductIntelligence do
end
end
- context 'with dictionary file not changed' do
- it { is_expected.to be_empty }
- end
-
context 'with metrics files changed' do
let(:changed_files) { ['config/metrics/counts_7d/test_metric.yml', 'ee/config/metrics/counts_7d/ee_metric.yml'] }