diff --git a/app/helpers/user_table_helper.rb b/app/helpers/user_table_helper.rb index 867108556..7726eff94 100644 --- a/app/helpers/user_table_helper.rb +++ b/app/helpers/user_table_helper.rb @@ -6,7 +6,7 @@ module UserTableHelper end def org_cell(user) - role = "#{user.role}" + role = "#{user.role.to_s.humanize}" [user.organisation.name, role].join("\n") end end diff --git a/spec/helpers/user_table_helper_spec.rb b/spec/helpers/user_table_helper_spec.rb index 6d8921a0f..e3a4f9204 100644 --- a/spec/helpers/user_table_helper_spec.rb +++ b/spec/helpers/user_table_helper_spec.rb @@ -12,7 +12,7 @@ RSpec.describe UserTableHelper do describe "#org_cell" do it "returns the users org name and role separated by a newline character" do - expected_html = "DLUHC\nData Provider" + expected_html = "DLUHC\nData provider" expect(org_cell(user)).to match(expected_html) end end