Skip to content

Commit

Permalink
Move UsersReportService to Reports module
Browse files Browse the repository at this point in the history
Move the `UserReportService` in to a `reports` directory and under a
`Reports` module to group the different reports services together.
  • Loading branch information
stephencdaly committed Jan 3, 2025
1 parent 728f033 commit 689c5de
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/controllers/reports_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def features
end

def users
data = UsersReportService.new.user_data
data = Reports::UsersReportService.new.user_data

render locals: { data: }
end
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class UsersReportService
class Reports::UsersReportService
def user_data
{
caption: I18n.t("reports.users.heading"),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "rails_helper"

describe UsersReportService do
describe Reports::UsersReportService do
subject(:users_report_service) do
described_class.new
end
Expand Down

0 comments on commit 689c5de

Please sign in to comment.