-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathiso2html_spec.rb
More file actions
66 lines (56 loc) · 2.01 KB
/
Copy pathiso2html_spec.rb
File metadata and controls
66 lines (56 loc) · 2.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# frozen_string_literal: true
require 'spec_helper'
# TODO: Provide additional expectations on html structure
describe 'ISO 19139 to html' do
include XmlDocs
let(:page) { GeoCombine::Iso19139.new(stanford_iso).to_html }
describe 'Identification Information' do
it 'has sections' do
expect(page).to have_tag '#iso-identification-info' do
with_tag 'dt', text: /Citation/
with_tag 'dt', text: /Title/
with_tag 'dd', text: /Hydrologic Sub-Area Boundaries: Russian River Watershed, California, 1999/
with_tag 'dt', text: /Originator/
with_tag 'dd', text: trim('Circuit Rider Productions'), count: 4
with_tag 'dt', text: /Place of Publication/
with_tag 'dd', text: /Windsor/
end
end
end
describe 'Spatial Reference Information' do
it 'has sections' do
expect(page).to have_tag '#iso-spatial-reference-info'
expect(page).to have_tag 'h2', text: 'Identification Information'
end
end
describe 'Data Quality Information' do
it 'has sections' do
expect(page).to have_tag '#iso-data-quality-info'
expect(page).to have_tag 'h2', text: 'Data Quality Information'
end
end
describe 'Distribution Information' do
it 'has sections' do
expect(page).to have_tag '#iso-distribution-info'
expect(page).to have_tag 'h2', text: 'Distribution Information'
end
end
describe 'Content Information' do
it 'has sections' do
expect(page).to have_tag '#iso-content-info'
expect(page).to have_tag 'h2', text: 'Content Information'
end
end
describe 'Spatial Representation Information' do
it 'has sections' do
expect(page).to have_tag '#iso-spatial-representation-info'
expect(page).to have_tag 'h2', text: 'Spatial Representation Information'
end
end
describe 'Metadata Reference Information' do
it 'has sections' do
expect(page).to have_tag '#iso-metadata-reference-info'
expect(page).to have_tag 'h2', text: 'Metadata Reference Information'
end
end
end