From 4e8c984d8559131015b74824e0c2f374328af9de Mon Sep 17 00:00:00 2001 From: martintomas Date: Fri, 9 Feb 2024 11:11:44 +0100 Subject: [PATCH] test: changing id of draft ascor countries --- spec/services/api/ascor/benchmarks_chart_spec.rb | 2 +- spec/services/api/ascor/bubble_chart_spec.rb | 2 +- spec/services/api/ascor/emissions_chart_spec.rb | 2 +- spec/services/api/ascor/recent_emissions_spec.rb | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/services/api/ascor/benchmarks_chart_spec.rb b/spec/services/api/ascor/benchmarks_chart_spec.rb index 570085da4..870074239 100644 --- a/spec/services/api/ascor/benchmarks_chart_spec.rb +++ b/spec/services/api/ascor/benchmarks_chart_spec.rb @@ -5,7 +5,7 @@ before_all do @country = create :ascor_country - _draft_country = create(:ascor_country, id: 3, name: 'Draft Country', iso: 'DFT') + _draft_country = create(:ascor_country, id: 30, name: 'Draft Country', iso: 'DFT') create :ascor_pathway, country: @country, diff --git a/spec/services/api/ascor/bubble_chart_spec.rb b/spec/services/api/ascor/bubble_chart_spec.rb index a7daf30d0..0c02da7f3 100644 --- a/spec/services/api/ascor/bubble_chart_spec.rb +++ b/spec/services/api/ascor/bubble_chart_spec.rb @@ -6,7 +6,7 @@ before_all do usa = create(:ascor_country, id: 1, name: 'USA', iso: 'USA') japan = create(:ascor_country, id: 2, name: 'Japan', iso: 'JPN') - _draft_country = create(:ascor_country, id: 3, name: 'Draft Country', iso: 'DFT') + _draft_country = create(:ascor_country, id: 30, name: 'Draft Country', iso: 'DFT') _indicator_pillar_1 = create(:ascor_assessment_indicator, id: 1, code: 'EP', indicator_type: :pillar, text: 'Emissions Performance') diff --git a/spec/services/api/ascor/emissions_chart_spec.rb b/spec/services/api/ascor/emissions_chart_spec.rb index d4893dbf2..d00e181cd 100644 --- a/spec/services/api/ascor/emissions_chart_spec.rb +++ b/spec/services/api/ascor/emissions_chart_spec.rb @@ -6,7 +6,7 @@ before_all do @usa = create(:ascor_country, id: 1, name: 'USA', iso: 'USA') @czechia = create(:ascor_country, id: 2, name: 'Czechia', iso: 'CZE') - _draft_country = create(:ascor_country, id: 3, name: 'Draft Country', iso: 'DFT') + _draft_country = create(:ascor_country, id: 30, name: 'Draft Country', iso: 'DFT') create :ascor_pathway, country: @usa, diff --git a/spec/services/api/ascor/recent_emissions_spec.rb b/spec/services/api/ascor/recent_emissions_spec.rb index ce7c90a6b..f3f797707 100644 --- a/spec/services/api/ascor/recent_emissions_spec.rb +++ b/spec/services/api/ascor/recent_emissions_spec.rb @@ -5,7 +5,7 @@ before_all do @country = create(:ascor_country, id: 1, name: 'USA', iso: 'USA') - _draft_country = create(:ascor_country, id: 3, name: 'Draft Country', iso: 'DFT') + _draft_country = create(:ascor_country, id: 30, name: 'Draft Country', iso: 'DFT') @assessment_date = Date.new(2019, 1, 1) create :ascor_pathway,