@ -75,7 +75,7 @@ private
return "Not accepted" unless organisation.data_protection_confirmed?
if user.support?
"Accepted #{organisation.data_protection_confirmation.created_at.strftime('%d/%m/%Y')}"
"Accepted #{organisation.data_protection_confirmation.signed_at.strftime('%d/%m/%Y')}"
else
"Accepted"
end
@ -15,6 +15,6 @@ FactoryBot.define do
created_at { Time.zone.now }
updated_at { Time.zone.now }
signed_at { Time.zone.now }
signed_at { Time.zone.local(2022, 2, 4) }
@ -98,7 +98,7 @@ RSpec.describe "organisations/show.html.erb" do
it "shows data sharing agreement accepted with date" do
render
expect(fragment).to have_content("Accepted 10/01/2023")
expect(fragment).to have_content("Accepted 04/02/2022")
it "shows show name of who signed the agreement" do