parent
8704c26b24
commit
408f57d2d1
2 changed files with 9 additions and 4 deletions
|
@ -14,8 +14,15 @@
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"association_date_creation": {
|
"association_date_creation": {
|
||||||
"type": "string",
|
"anyOf": [
|
||||||
"format": "date"
|
{
|
||||||
|
"type": "string",
|
||||||
|
"format": "date"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "null"
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"association_date_declaration": {
|
"association_date_declaration": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
@ -229,7 +236,6 @@
|
||||||
"required": [
|
"required": [
|
||||||
"association_titre",
|
"association_titre",
|
||||||
"association_rna",
|
"association_rna",
|
||||||
"association_date_creation",
|
|
||||||
"association_date_declaration",
|
"association_date_declaration",
|
||||||
"association_date_publication"
|
"association_date_publication"
|
||||||
]
|
]
|
||||||
|
|
|
@ -29,7 +29,6 @@ describe APIEntreprise::RNAAdapter do
|
||||||
expect(subject["association_rna"]).to eq('W595001988')
|
expect(subject["association_rna"]).to eq('W595001988')
|
||||||
expect(subject["association_titre"]).to eq('UN SUR QUATRE')
|
expect(subject["association_titre"]).to eq('UN SUR QUATRE')
|
||||||
expect(subject["association_objet"]).to eq("valoriser, transmettre et partager auprès des publics les plus larges possibles, les bienfaits de l'immigration, la richesse de la diversité et la curiosité de l'autre autrement")
|
expect(subject["association_objet"]).to eq("valoriser, transmettre et partager auprès des publics les plus larges possibles, les bienfaits de l'immigration, la richesse de la diversité et la curiosité de l'autre autrement")
|
||||||
expect(subject["association_date_creation"]).to eq('2014-01-23')
|
|
||||||
expect(subject["association_date_declaration"]).to eq('2014-01-24')
|
expect(subject["association_date_declaration"]).to eq('2014-01-24')
|
||||||
expect(subject["association_date_publication"]).to eq('2014-02-08')
|
expect(subject["association_date_publication"]).to eq('2014-02-08')
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue