@ -242,13 +242,14 @@ RSpec.describe Organisation, type: :model do
it " does not include data protection agreement " do
expect ( organisation . display_organisation_attributes ) . to eq (
[ { editable : true , name : " Name " , value : " DLUHC " } ,
{ editable : false , name : " Organisation ID " , value : " ORG #{ organisation . id } " } ,
{ editable : true ,
name : " Address " ,
value : " 2 Marsham Street \n London \n SW1P 4DF " } ,
{ editable : true , name : " Telephone_ number " , value : nil } ,
{ editable : true , name : " Telephone number " , value : nil } ,
{ editable : false , name : " Type of provider " , value : " Local authority " } ,
{ editable : false , name : " Registration number " , value : " 1234 " } ,
{ editable : false , format : :bullet , name : " Rent_ periods " , value : %w[ All ] } ,
{ editable : false , format : :bullet , name : " Rent periods " , value : %w[ All ] } ,
{ editable : false , name : " Owns housing stock " , value : " Yes " } ] ,
)
end
@ -262,13 +263,14 @@ RSpec.describe Organisation, type: :model do
it " includes data protection agreement " do
expect ( organisation . display_organisation_attributes ) . to eq (
[ { editable : true , name : " Name " , value : " DLUHC " } ,
{ editable : false , name : " Organisation ID " , value : " ORG #{ organisation . id } " } ,
{ editable : true ,
name : " Address " ,
value : " 2 Marsham Street \n London \n SW1P 4DF " } ,
{ editable : true , name : " Telephone_ number " , value : nil } ,
{ editable : true , name : " Telephone number " , value : nil } ,
{ editable : false , name : " Type of provider " , value : " Local authority " } ,
{ editable : false , name : " Registration number " , value : " 1234 " } ,
{ editable : false , format : :bullet , name : " Rent_ periods " , value : %w[ All ] } ,
{ editable : false , format : :bullet , name : " Rent periods " , value : %w[ All ] } ,
{ editable : false , name : " Owns housing stock " , value : " Yes " } ,
{ editable : false , name : " Data protection agreement " , value : " Accepted " } ] ,
)