This repository was archived by the owner on Jan 24, 2025. It is now read-only.
File tree 3 files changed +5
-5
lines changed
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -40,8 +40,8 @@ def build_name(resource)
40
40
end
41
41
42
42
def build_type ( resource )
43
- type = resource . get ( "resource_type " )
44
- type == "documentation " ? "Doc" : "Datafile"
43
+ type = resource . get ( "resource-type " )
44
+ type == "supporting-document " ? "Doc" : "Datafile"
45
45
end
46
46
end
47
47
end
Original file line number Diff line number Diff line change 112
112
"position" : 1 ,
113
113
"revision_id" : " a0372fbf-c991-436c-b0a5-744d499054ee" ,
114
114
"id" : " b7e53746-1154-425d-a85d-5bb03eb3f310" ,
115
- "resource_type " : " documentation " ,
115
+ "resource-type " : " supporting-document " ,
116
116
"name" : " Landing page"
117
117
}
118
118
],
196
196
"position" : 1 ,
197
197
"revision_id" : " a0372fbf-c991-436c-b0a5-744d499054ee" ,
198
198
"id" : " b7e53746-1154-425d-a85d-5bb03eb3f310" ,
199
- "resource_type " : " documentation " ,
199
+ "resource-type " : " supporting-document " ,
200
200
"name" : " Landing page"
201
201
}
202
202
],
Original file line number Diff line number Diff line change 17
17
end
18
18
19
19
it "correctly distinguishes between datafiles and docs" do
20
- resource = build :ckan_v26_resource , resource_type : "documentation "
20
+ resource = build :ckan_v26_resource , "resource-type" : "supporting-document "
21
21
attributes = subject . call ( resource , dataset )
22
22
expect ( attributes [ :type ] ) . to eq "Doc"
23
23
end
You can’t perform that action at this time.
0 commit comments