Skip to content

Commit

Permalink
Run rubocop autocorrect
Browse files Browse the repository at this point in the history
  • Loading branch information
corylown committed Jun 17, 2024
1 parent baa08da commit 06121e2
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions spec/views/dashboard/summary.html.erb_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,13 @@
assign(:uploads, Kaminari.paginate_array(uploads1).page(1))
assign(:dashboard, dashboard)

allow(view).to receive(:files_status).and_return(:completed)
allow(view).to receive(:count_roles).and_return({ admin: 1, owner: 2, member: 3 })
allow(view).to receive_messages(files_status: :completed, count_roles: { admin: 1, owner: 2, member: 3 })

allow(dashboard).to receive(:recent_uploads_by_provider).and_return({ provider1 => uploads1 })

allow(dashboard).to receive(:job_status_groups_by_provider).and_return({ provider1 => { active: [job_tracker_active],
needs_attention: [job_tracker_attention] } }) # rubocop:disable Layout/LineLength
allow(dashboard).to receive(:normalized_data_by_provider).and_return({ provider1 => normalized_data })
allow(dashboard).to receive(:users_by_organization).and_return({ provider1 => { admin: 1, owner: 2, member: 3 } })
allow(dashboard).to receive_messages(recent_uploads_by_provider: { provider1 => uploads1 },
job_status_groups_by_provider: { provider1 => { active: [job_tracker_active],
needs_attention: [job_tracker_attention] } },
normalized_data_by_provider: { provider1 => normalized_data },
users_by_organization: { provider1 => { admin: 1, owner: 2, member: 3 } })
end

# rubocop:disable RSpec/ExampleLength, RSpec/MultipleExpectations
Expand Down

0 comments on commit 06121e2

Please sign in to comment.