File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 461
461
expect ( html ) . to have_css ( "table tfoot dl dt" , text : "ex:" )
462
462
expect ( html ) . to have_css ( "table tfoot dl dd" , text : "https://example.org/" )
463
463
end
464
+ it "should add class=url for the name and example columns in shapes table" do
465
+ @ttl2html = TTL2HTML ::App . new ( File . join ( spec_base_dir , "example/example.yml" ) )
466
+ @ttl2html . load_turtle ( File . join ( spec_base_dir , "example/example_shape.ttl" ) )
467
+ @ttl2html . output_html_files
468
+ cont = open ( "/tmp/html/about.html" ) { |io | io . read }
469
+ html = Capybara . string cont
470
+ expect ( html ) . to have_css ( "table td.url" , text : "ex:title" )
471
+ end
464
472
it "should accept labels_with_class settings per target class" do
465
473
@ttl2html = TTL2HTML ::App . new ( File . join ( spec_base_dir , "example/example_labels_with_class.yml" ) )
466
474
@ttl2html . load_turtle ( File . join ( spec_base_dir , "example/example.ttl" ) )
Original file line number Diff line number Diff line change 11
11
<%- param [ :properties ] . each do |property | -%>
12
12
< tr >
13
13
<%- if property [ :nodeKind ] == "http://www.w3.org/ns/shacl#BlankNode" -%>
14
- < td rowspan ="2 "> < code > <%= h property [ :shorten_path ] %> </ code > </ td >
14
+ < td rowspan ="2 " class =" url " > < code > <%= h property [ :shorten_path ] %> </ code > </ td >
15
15
<%- else -%>
16
- < td > < code > <%= h property [ :shorten_path ] %> </ code > </ td >
16
+ < td class =" url " > < code > <%= h property [ :shorten_path ] %> </ code > </ td >
17
17
<%- end -%>
18
18
< td > <%= property [ :name ] %> </ td >
19
19
<%- if property [ :nodeKind ] == "http://www.w3.org/ns/shacl#IRI" -%>
You can’t perform that action at this time.
0 commit comments