Skip to content

Commit

Permalink
rubocop fix hound
Browse files Browse the repository at this point in the history
  • Loading branch information
yuenmichelle1 committed Oct 8, 2024
1 parent 7ba19d4 commit b751b38
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# frozen_string_literal: true


class AddRefreshPolicyForHourlyWorkflowCount < ActiveRecord::Migration[7.0]
disable_ddl_transaction!
def change
Expand Down
6 changes: 3 additions & 3 deletions spec/queries/count_classifications_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand All @@ -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
Expand Down

0 comments on commit b751b38

Please sign in to comment.