From b9c6821261623105c1a879f73b1a4e76f443c695 Mon Sep 17 00:00:00 2001 From: Sam Date: Tue, 15 May 2018 15:20:36 +1000 Subject: [PATCH] correct spec --- spec/models/report_spec.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/spec/models/report_spec.rb b/spec/models/report_spec.rb index 0da13d9443d..f2507b3515f 100644 --- a/spec/models/report_spec.rb +++ b/spec/models/report_spec.rb @@ -344,12 +344,12 @@ describe Report do end it "returns a report with data" do - expect(report.data[0][0]).to eq("ruby") - expect(report.data[0][1]).to eq(2) - expect(report.data[0][2]).to eq('33.4%') + expect(report.data[0][:term]).to eq("ruby") + expect(report.data[0][:unique_searches]).to eq(2) + expect(report.data[0][:ctr]).to eq('33.4%') - expect(report.data[1][0]).to eq("php") - expect(report.data[1][1]).to eq(1) + expect(report.data[1][:term]).to eq("php") + expect(report.data[1][:unique_searches]).to eq(1) end end end