Skip to content

Commit

Permalink
ER-895 Local Authority User data discrepancy (#1019)
Browse files Browse the repository at this point in the history
* Update user to show correct number of registered per local authority

* Remove confirmed line in spec
  • Loading branch information
martikat authored Dec 21, 2023
1 parent 4303347 commit 399f3fa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/data_analysis/local_authority_user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def authorities

# @return [User::ActiveRecord_Relation]
def public_beta_users
User.since_public_beta.with_local_authority
User.since_public_beta.with_local_authority.registration_complete
end
end
end
Expand Down
4 changes: 4 additions & 0 deletions spec/models/data_analysis/local_authority_user_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
end

before do
# Incomplete registration
create :user, :named, local_authority: 'LA3'

# Registered user
create :user, :registered, local_authority: 'LA1'
create :user, :registered, local_authority: 'LA1'
create :user, :registered, local_authority: 'LA3'
Expand Down

0 comments on commit 399f3fa

Please sign in to comment.