@@ -84,22 +84,20 @@ def test_distribution
8484
8585 res = dcatusNS . build ( intMetadata )
8686
87- expected = [
88- { '@type' => 'dcat:Distribution' , 'description' => 'online resource description' ,
89- 'downloadURL' => 'online resource URL' , 'title' => 'online resource name' , 'mediaType' => 'placeholder/value' } ,
90- { '@type' => 'dcat:Distribution' , 'description' => 'aggregate information detailed description' ,
91- 'downloadURL' => 'aggregate_information_online_resources' ,
92- 'title' => 'name of aggregate information resource' , 'mediaType' => 'placeholder/value' } ,
93- { '@type' => 'dcat:Distribution' , 'description' => 'aggregate information detailed description aoisd' ,
94- 'downloadURL' => 'aggregate_information_online_resources 12309u' ,
95- 'title' => 'name of aggregate information resource 10923j' , 'mediaType' => 'placeholder/value' } ,
96- { '@type' => 'dcat:Distribution' , 'description' => 'Aggregation Info Sample Description' ,
97- 'downloadURL' => 'https://aggregation_info_sample_url.gov' ,
98- 'title' => 'Aggregation Info Sample Name' , 'mediaType' => 'placeholder/value' } ,
99- { '@type' => 'dcat:Distribution' ,
100- 'downloadURL' => 'https://online_resource_url.gov' , 'title' => 'online resource name' ,
101- 'mediaType' => 'placeholder/value' }
102- ]
87+ expected = [ { '@type' => 'dcat:Distribution' , 'description' => 'online resource description' ,
88+ 'accessURL' => 'online resource URL' , 'mediaType' => 'text/html' , 'title' => 'online resource name' } ,
89+ { '@type' => 'dcat:Distribution' , 'description' => 'aggregate information detailed description' ,
90+ 'accessURL' => 'aggregate_information_online_resources' , 'mediaType' => 'text/html' ,
91+ 'title' => 'name of aggregate information resource' } ,
92+ { '@type' => 'dcat:Distribution' , 'description' => 'aggregate information detailed description aoisd' ,
93+ 'accessURL' => 'aggregate_information_online_resources 12309u' , 'mediaType' => 'text/html' ,
94+ 'title' => 'name of aggregate information resource 10923j' } ,
95+ { '@type' => 'dcat:Distribution' , 'description' => 'Aggregation Info Sample Description' ,
96+ 'accessURL' => 'https://aggregation_info_sample_url.gov' , 'mediaType' => 'text/html' ,
97+ 'title' => 'Aggregation Info Sample Name' } ,
98+ { '@type' => 'dcat:Distribution' , 'accessURL' => 'https://online_resource_url.gov' ,
99+ 'mediaType' => 'text/html' ,
100+ 'title' => 'online resource name' } ]
103101 assert_equal ( expected , res )
104102 end
105103
0 commit comments