Skip to content

Commit

Permalink
test: use match_array instead of eq
Browse files Browse the repository at this point in the history
  • Loading branch information
martintomas committed Oct 2, 2023
1 parent a2e9d58 commit e947b33
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions spec/services/api/ascor/bubble_chart_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,16 @@
let(:assessment_date) { Date.new(2019, 2, 1) }

it 'returns the correct data' do
expect(subject).to eq(
expect(subject).to match_array(
[{
pillar: 'Emissions Performance',
area: 'Emissions Performance 1',
result: 'Yes',
country_id: 1,
country_name: 'USA',
country_path: '/ascor/usa',
market_cap_group: :small
},
pillar: 'Emissions Performance',
area: 'Emissions Performance 1',
result: 'Yes',
country_id: 1,
country_name: 'USA',
country_path: '/ascor/usa',
market_cap_group: :small
},
{
pillar: 'Emissions Performance',
area: 'Emissions Performance 1',
Expand Down

0 comments on commit e947b33

Please sign in to comment.