From b751b38dcedb043ee84423942fcaadff3ace2774 Mon Sep 17 00:00:00 2001 From: yuenmichelle1 Date: Mon, 7 Oct 2024 23:44:12 -0500 Subject: [PATCH] rubocop fix hound --- ...26231010_add_refresh_policy_for_hourly_workflow_count.rb | 1 - spec/queries/count_classifications_spec.rb | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/db/migrate/20240926231010_add_refresh_policy_for_hourly_workflow_count.rb b/db/migrate/20240926231010_add_refresh_policy_for_hourly_workflow_count.rb index e273a34..ec4364e 100644 --- a/db/migrate/20240926231010_add_refresh_policy_for_hourly_workflow_count.rb +++ b/db/migrate/20240926231010_add_refresh_policy_for_hourly_workflow_count.rb @@ -1,6 +1,5 @@ # frozen_string_literal: true - class AddRefreshPolicyForHourlyWorkflowCount < ActiveRecord::Migration[7.0] disable_ddl_transaction! def change diff --git a/spec/queries/count_classifications_spec.rb b/spec/queries/count_classifications_spec.rb index bdeba0b..67d1e24 100644 --- a/spec/queries/count_classifications_spec.rb +++ b/spec/queries/count_classifications_spec.rb @@ -89,7 +89,7 @@ context 'when params[:workflow_id] present' do context 'when params[:end_date] is before current date' do - it 'returns counts from DailyWorkflowClassificationCount'do + it 'returns counts from DailyWorkflowClassificationCount' do yesterday = Date.today - 1 params[:workflow_id] = diff_time_event.workflow_id.to_s params[:end_date] = yesterday.to_s @@ -149,7 +149,7 @@ context 'when there are classifications up to previous day' do context 'when there are 0 classifications for current day' do - let!(:classification_created_yesterday_diff_workflow) { create(:classification_created_yesterday, workflow_id: 4, classification_id: 100)} + let!(:classification_created_yesterday_diff_workflow) { create(:classification_created_yesterday, workflow_id: 4, classification_id: 100) } it 'returns from DailyWorkflowCount (scoped up to yesterday)' do params[:workflow_id] = classification_created_yesterday_diff_workflow.workflow_id.to_s expect(counts.model).to be(ClassificationCounts::DailyWorkflowClassificationCount) @@ -160,7 +160,7 @@ context 'when there are classifications for current day' do before do - allow(Date).to receive(:today).and_return Date.new(2022,10,21) + allow(Date).to receive(:today).and_return Date.new(2022, 10, 21) params[:workflow_id] = diff_workflow_event.workflow_id.to_s params[:period] = 'year' end