Skip to content

Commit

Permalink
Update params.merge
Browse files Browse the repository at this point in the history
  • Loading branch information
pranavrajs committed May 22, 2024
1 parent df4da4f commit b60ea34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/builders/v2/reports/conversations/metric_builder_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@

it 'creates builders with proper params' do
subject.summary
expect(V2::Reports::Timeseries::CountReportBuilder).to have_received(:new).with(account, hash_including(metric: 'conversations_count'))
expect(V2::Reports::Timeseries::AverageReportBuilder).to have_received(:new).with(account, hash_including(metric: 'avg_first_response_time'))
expect(V2::Reports::Timeseries::CountReportBuilder).to have_received(:new).with(account, params.merge(metric: 'conversations_count'))
expect(V2::Reports::Timeseries::AverageReportBuilder).to have_received(:new).with(account, params.merge(metric: 'avg_first_response_time'))
end
end

Expand Down

0 comments on commit b60ea34

Please sign in to comment.