metanorma-iso 1.10.3 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (81) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/rake.yml +3 -33
  3. data/.github/workflows/ubuntu.yml +1 -1
  4. data/.gitignore +26 -0
  5. data/Gemfile +1 -1
  6. data/Makefile +1 -1
  7. data/lib/asciidoctor/iso/base.rb +2 -69
  8. data/lib/asciidoctor/iso/cleanup.rb +2 -175
  9. data/lib/asciidoctor/iso/converter.rb +2 -17
  10. data/lib/asciidoctor/iso/deprecated.rb +5 -0
  11. data/lib/asciidoctor/iso/front.rb +2 -156
  12. data/lib/asciidoctor/iso/front_id.rb +2 -221
  13. data/lib/asciidoctor/iso/section.rb +2 -48
  14. data/lib/asciidoctor/iso/validate.rb +2 -171
  15. data/lib/asciidoctor/iso/validate_image.rb +2 -96
  16. data/lib/asciidoctor/iso/validate_requirements.rb +2 -110
  17. data/lib/asciidoctor/iso/validate_section.rb +2 -246
  18. data/lib/asciidoctor/iso/validate_style.rb +2 -169
  19. data/lib/asciidoctor/iso/validate_title.rb +2 -104
  20. data/lib/isodoc/iso/base_convert.rb +14 -31
  21. data/lib/isodoc/iso/html/style-human.css +40 -8
  22. data/lib/isodoc/iso/html/style-human.scss +36 -8
  23. data/lib/isodoc/iso/html/style-iso.css +35 -5
  24. data/lib/isodoc/iso/html/style-iso.scss +31 -5
  25. data/lib/isodoc/iso/html/wordstyle.css +10 -8
  26. data/lib/isodoc/iso/html/wordstyle.scss +10 -8
  27. data/lib/isodoc/iso/html_convert.rb +83 -22
  28. data/lib/isodoc/iso/index.rb +53 -45
  29. data/lib/isodoc/iso/iso.amendment.xsl +477 -264
  30. data/lib/isodoc/iso/iso.international-standard.xsl +477 -264
  31. data/lib/isodoc/iso/metadata.rb +27 -22
  32. data/lib/isodoc/iso/presentation_xml_convert.rb +42 -17
  33. data/lib/isodoc/iso/sts_convert.rb +2 -4
  34. data/lib/isodoc/iso/word_convert.rb +0 -2
  35. data/lib/metanorma/iso/base.rb +70 -0
  36. data/lib/{asciidoctor → metanorma}/iso/basicdoc.rng +0 -0
  37. data/lib/{asciidoctor → metanorma}/iso/biblio.rng +0 -0
  38. data/lib/{asciidoctor → metanorma}/iso/boilerplate-fr.xml +0 -0
  39. data/lib/{asciidoctor → metanorma}/iso/boilerplate.xml +0 -0
  40. data/lib/metanorma/iso/cleanup.rb +176 -0
  41. data/lib/metanorma/iso/converter.rb +18 -0
  42. data/lib/metanorma/iso/front.rb +170 -0
  43. data/lib/metanorma/iso/front_id.rb +225 -0
  44. data/lib/{asciidoctor → metanorma}/iso/isodoc.rng +49 -2
  45. data/lib/{asciidoctor → metanorma}/iso/isostandard-amd.rng +0 -0
  46. data/lib/{asciidoctor → metanorma}/iso/isostandard.rnc +0 -0
  47. data/lib/{asciidoctor → metanorma}/iso/isostandard.rng +14 -0
  48. data/lib/{asciidoctor → metanorma}/iso/reqt.rng +0 -0
  49. data/lib/metanorma/iso/section.rb +49 -0
  50. data/lib/metanorma/iso/validate.rb +172 -0
  51. data/lib/metanorma/iso/validate_image.rb +97 -0
  52. data/lib/metanorma/iso/validate_requirements.rb +111 -0
  53. data/lib/metanorma/iso/validate_section.rb +247 -0
  54. data/lib/metanorma/iso/validate_style.rb +170 -0
  55. data/lib/metanorma/iso/validate_title.rb +105 -0
  56. data/lib/metanorma/iso/version.rb +1 -1
  57. data/lib/metanorma-iso.rb +1 -1
  58. data/metanorma-iso.gemspec +2 -2
  59. data/spec/isodoc/amd_spec.rb +261 -250
  60. data/spec/isodoc/inline_spec.rb +238 -212
  61. data/spec/isodoc/iso_spec.rb +3 -1
  62. data/spec/isodoc/postproc_spec.rb +111 -28
  63. data/spec/isodoc/ref_spec.rb +4 -2
  64. data/spec/isodoc/section_spec.rb +1 -1
  65. data/spec/isodoc/terms_spec.rb +17 -24
  66. data/spec/{asciidoctor → metanorma}/amd_spec.rb +1 -1
  67. data/spec/metanorma/base_spec.rb +1185 -0
  68. data/spec/{asciidoctor → metanorma}/blank_spec.rb +1 -1
  69. data/spec/{asciidoctor → metanorma}/blocks_spec.rb +1 -1
  70. data/spec/{asciidoctor → metanorma}/cleanup_spec.rb +1 -1
  71. data/spec/{asciidoctor → metanorma}/inline_spec.rb +1 -1
  72. data/spec/{asciidoctor → metanorma}/lists_spec.rb +1 -1
  73. data/spec/metanorma/processor_spec.rb +1 -1
  74. data/spec/{asciidoctor → metanorma}/refs_spec.rb +1 -1
  75. data/spec/{asciidoctor → metanorma}/section_spec.rb +1 -1
  76. data/spec/{asciidoctor → metanorma}/table_spec.rb +1 -1
  77. data/spec/{asciidoctor → metanorma}/validate_spec.rb +1 -1
  78. data/spec/spec_helper.rb +1 -1
  79. data/spec/vcr_cassettes/docrels.yml +35 -425
  80. metadata +40 -27
  81. data/spec/asciidoctor/base_spec.rb +0 -1333
@@ -48,7 +48,7 @@ RSpec.describe IsoDoc do
48
48
  expect(File.exist?("test.html")).to be true
49
49
  html = File.read("test.html", encoding: "UTF-8")
50
50
  expect(html).to include "<title>Cereals and pulses&#xA0;&#x2014; "\
51
- "Specifications and test methods&#xA0;&#x2014; Rice</title>"
51
+ "Specifications and test methods&#xA0;&#x2014; Rice</title>"
52
52
  expect(html).to match(%r{cdnjs\.cloudflare\.com/ajax/libs/mathjax/})
53
53
  expect(html).to match(/delimiters: \[\['\(#\(', '\)#\)'\]\]/)
54
54
  end
@@ -77,7 +77,7 @@ RSpec.describe IsoDoc do
77
77
  expect(File.exist?("test.html")).to be true
78
78
  html = File.read("test.html", encoding: "UTF-8")
79
79
  expect(html).to include "title>Cereals and pulses&#xA0;&#x2014; "\
80
- "Specifications and test methods&#xA0;&#x2014; Rice</title>"
80
+ "Specifications and test methods&#xA0;&#x2014; Rice</title>"
81
81
  expect(html).to match(%r{cdnjs\.cloudflare\.com/ajax/libs/mathjax/})
82
82
  expect(html).to match(/delimiters: \[\['\(#\(', '\)#\)'\]\]/)
83
83
  end
@@ -206,14 +206,10 @@ RSpec.describe IsoDoc do
206
206
  <definition>
207
207
  <p id="_eb29b35e-123e-4d1c-b50b-2714d41e747f">rice retaining its husk after threshing</p>
208
208
  </definition>
209
- <termsource status="modified">
210
- <origin bibitemid="ISO7301" citeas="ISO 7301:2011" type="inline">
211
- <locality type="clause">
212
- <referenceFrom>3.1</referenceFrom>
213
- </locality>ISO 7301:2011, 3.1</origin>
214
- <modification>
215
- <p id="_e73a417d-ad39-417d-a4c8-20e4e2529489">The term &quot;cargo rice&quot; is shown as deprecated, and Note 1 to entry is not included here</p>
216
- </modification>
209
+ <termsource status="modified">[SOURCE:
210
+ <origin bibitemid="ISO7301" citeas="ISO 7301:2011" type="inline"><locality type="clause">
211
+ <referenceFrom>3.1</referenceFrom></locality>ISO 7301:2011, 3.1</origin>, modified &#x2013;
212
+ The term &quot;cargo rice&quot; is shown as deprecated, and Note 1 to entry is not included here]
217
213
  </termsource>
218
214
  </term>
219
215
  </terms>
@@ -226,23 +222,32 @@ RSpec.describe IsoDoc do
226
222
  .sub(%r{<br[^>]*>\s*<div class="colophon".*$}m, "")
227
223
 
228
224
  expect(xmlpp(word)).to be_equivalent_to xmlpp(<<~"OUTPUT")
229
- <div class="WordSection3">
230
- <p class="zzSTDTitle1"/>
231
- <div>
232
- <a id="_terms_and_definitions" name="_terms_and_definitions"/>
233
- <h1>1
234
- <span style="mso-tab-count:1">  </span>
235
- Terms and Definitions</h1>
236
- <p class="TermNum">
237
- <a id="paddy1" name="paddy1"/>1.1</p>
238
- <p class="Terms" style="text-align:left;">paddy</p>
239
- <p class="Definition">
240
- <a id="_eb29b35e-123e-4d1c-b50b-2714d41e747f" name="_eb29b35e-123e-4d1c-b50b-2714d41e747f"/>rice retaining its husk after threshing</p>
241
- <p class="Source">[SOURCE:
242
- <a href="#ISO7301">ISO 7301:2011, 3.1</a>
243
- , modified — The term &quot;cargo rice&quot; is shown as deprecated, and Note 1 to entry is not included here]</p>
244
- </div>
245
- </div>
225
+ <div class='WordSection3'>
226
+ <p class='zzSTDTitle1'/>
227
+ <div>
228
+ <a name='_terms_and_definitions' id='_terms_and_definitions'/>
229
+ <h1>
230
+ 1
231
+ <span style='mso-tab-count:1'>&#xA0; </span>
232
+ Terms and Definitions
233
+ </h1>
234
+ <p class='TermNum'>
235
+ <a name='paddy1' id='paddy1'/>
236
+ 1.1
237
+ </p>
238
+ <p class='Terms' style='text-align:left;'>paddy</p>
239
+ <p class='Definition'>
240
+ <a name='_eb29b35e-123e-4d1c-b50b-2714d41e747f' id='_eb29b35e-123e-4d1c-b50b-2714d41e747f'/>
241
+ rice retaining its husk after threshing
242
+ </p>
243
+ <p class='Source'>
244
+ [SOURCE:
245
+ <a href='#ISO7301'>ISO 7301:2011, 3.1</a>
246
+ , modified &#x2013; The term "cargo rice" is shown as deprecated, and Note
247
+ 1 to entry is not included here]
248
+ </p>
249
+ </div>
250
+ </div>
246
251
  OUTPUT
247
252
  end
248
253
 
@@ -262,6 +267,84 @@ RSpec.describe IsoDoc do
262
267
  expect(word).to include('Content-Disposition: inline; filename="header.html"')
263
268
  end
264
269
 
270
+ it "populates HTML ToC" do
271
+ IsoDoc::Iso::HtmlConvert
272
+ .new(WORD_HTML_CSS.dup)
273
+ .convert("test", <<~"INPUT", false)
274
+ <iso-standard xmlns="http://riboseinc.com/isoxml">
275
+ <sections>
276
+ <clause id="A" inline-header="false" obligation="normative">
277
+ <title>1
278
+ <tab/>
279
+ Clause 4</title>
280
+ <clause id="N" inline-header="false" obligation="normative">
281
+ <title>1.1
282
+ <tab/>
283
+ Introduction
284
+ <bookmark id="Q"/>
285
+ to this
286
+ <fn reference="1">
287
+ <p id="_ff27c067-2785-4551-96cf-0a73530ff1e6">Formerly denoted as 15 % (m/m).</p></fn>
288
+ </title>
289
+ </clause>
290
+ <clause id="O" inline-header="false" obligation="normative">
291
+ <title>1.2
292
+ <tab/>
293
+ Clause 4.2</title>
294
+ <p>A
295
+ <fn reference="1">
296
+ <p id="_ff27c067-2785-4551-96cf-0a73530ff1e6">Formerly denoted as 15 % (m/m).</p></fn>
297
+ </p>
298
+ </clause>
299
+ </clause>
300
+ <clause id="P"><title>2<tab/>Clause 5</title>
301
+ <clause id="P1"><title>2.1<tab/>Clause 5.1</title></clause>
302
+ </clause>
303
+ <clause id="Q"><title>3<tab/>Clause 6</title></clause>
304
+ </sections>
305
+ </iso-standard>
306
+ INPUT
307
+
308
+ html = Nokogiri::XML(File.read("test.html", encoding: "UTF-8"))
309
+ .at("//div[@id = 'toc']").to_xml
310
+
311
+ expect(xmlpp(html))
312
+ .to be_equivalent_to xmlpp(<<~'OUTPUT')
313
+ <div id='toc'>
314
+ <ul>
315
+ <li class='h1'>
316
+ <div class='collapse-group'>
317
+ <a href='#toc0'>1 &#xA0; Clause 4</a>
318
+ <div class='collapse-button'/>
319
+ </div>
320
+ <ul class='content collapse'>
321
+ <li class='h2'>
322
+ <a href='#toc1'> 1.1 &#xA0; Introduction to this </a>
323
+ </li>
324
+ <li class='h2'>
325
+ <a href='#toc2'> 1.2 &#xA0; Clause 4.2</a>
326
+ </li>
327
+ </ul>
328
+ </li>
329
+ <li class='h1'>
330
+ <div class='collapse-group'>
331
+ <a href='#toc3'>2&#xA0; Clause 5</a>
332
+ <div class='collapse-button'/>
333
+ </div>
334
+ <ul class='content collapse'>
335
+ <li class='h2'>
336
+ <a href='#toc4'> 2.1&#xA0; Clause 5.1</a>
337
+ </li>
338
+ </ul>
339
+ </li>
340
+ <li class='h1'>
341
+ <a href='#toc5'> 3&#xA0; Clause 6</a>
342
+ </li>
343
+ </ul>
344
+ </div>
345
+ OUTPUT
346
+ end
347
+
265
348
  it "populates Word ToC" do
266
349
  IsoDoc::Iso::WordConvert
267
350
  .new(WORD_HTML_CSS_WORDINTRO.dup)
@@ -886,7 +969,7 @@ RSpec.describe IsoDoc do
886
969
  </div>
887
970
  OUTPUT
888
971
  expect(word).to include '<p class="zzWarning">This document is not '\
889
- "an ISO International Standard"
972
+ "an ISO International Standard"
890
973
  end
891
974
 
892
975
  it "populates Word ToC" do
@@ -272,6 +272,7 @@ RSpec.describe IsoDoc do
272
272
  </note>
273
273
  <bibitem id="ISO3696" type="standard">
274
274
  <title format="text/plain">Water for analytical laboratory use</title>
275
+ <docidentifier type='metanorma-ordinal'>[1]</docidentifier>
275
276
  <docidentifier type="ISO">ISO 3696</docidentifier>
276
277
  <contributor>
277
278
  <role type="publisher"/>
@@ -294,6 +295,7 @@ RSpec.describe IsoDoc do
294
295
  </bibitem>
295
296
  <bibitem id="ref11">
296
297
  <title>Internet Calendaring and Scheduling Core Object Specification (iCalendar)</title>
298
+ <docidentifier type='metanorma-ordinal'>[2]</docidentifier>
297
299
  <docidentifier type="IETF">IETF RFC 10</docidentifier>
298
300
  </bibitem>
299
301
  <bibitem id="ref12">
@@ -361,7 +363,7 @@ RSpec.describe IsoDoc do
361
363
  <p>
362
364
  <span class="note_label">NOTE</span>&#160; This is another annotation of document ISSN.</p>
363
365
  </div>
364
- <p class="Biblio" id="ISO3696">[3]&#160; ISO 3696,
366
+ <p class="Biblio" id="ISO3696">[1]&#160; ISO 3696,
365
367
  <i>Water for analytical laboratory use</i></p>
366
368
  <p class="Biblio" id="ref10">[10]&#160; <span style="font-variant:small-caps;">Standard No I.C.C 167</span>
367
369
  .
@@ -369,7 +371,7 @@ RSpec.describe IsoDoc do
369
371
  (see
370
372
  <a href="http://www.icc.or.at">http://www.icc.or.at</a>
371
373
  )</p>
372
- <p class="Biblio" id="ref11">[5]&#160; IETF RFC 10,
374
+ <p class="Biblio" id="ref11">[2]&#160; IETF RFC 10,
373
375
  <i>Internet Calendaring and Scheduling Core Object Specification (iCalendar)</i></p>
374
376
  <p class="Biblio" id="ref12">Citn&#160; IETF RFC 20, CitationWorks. 2019.
375
377
  <i>How to cite a reference</i>
@@ -565,7 +565,7 @@ RSpec.describe IsoDoc do
565
565
  <substage language=''>60</substage>
566
566
  </status>
567
567
  <copyright>
568
- <from>2021</from>
568
+ <from>#{Time.new.year}</from>
569
569
  <owner>
570
570
  <organization>
571
571
  <name>International Organization for Standardization</name>
@@ -39,15 +39,15 @@ RSpec.describe IsoDoc do
39
39
  <termnote id="_671a1994-4783-40d0-bc81-987d06ffb74e">
40
40
  <p id="_19830f33-e46c-42cc-94ca-a5ef101132d5">The starch of waxy rice consists almost entirely of amylopectin. The kernels have a tendency to stick together after cooking.</p>
41
41
  </termnote>
42
- <termnote id="_671a1994-4783-40d0-bc81-987d06ffb74f">
43
- <ul><li>A</li></ul>
44
- <p id="_19830f33-e46c-42cc-94ca-a5ef101132d5">The starch of waxy rice consists almost entirely of amylopectin. The kernels have a tendency to stick together after cooking.</p>
45
- </termnote>
46
42
  <termexample id="_bd57bbf1-f948-4bae-b0ce-73c00431f893">
47
43
  <ul>
48
44
  <li>A</li>
49
45
  </ul>
50
46
  </termexample>
47
+ <termnote id="_671a1994-4783-40d0-bc81-987d06ffb74f">
48
+ <ul><li>A</li></ul>
49
+ <p id="_19830f33-e46c-42cc-94ca-a5ef101132d5">The starch of waxy rice consists almost entirely of amylopectin. The kernels have a tendency to stick together after cooking.</p>
50
+ </termnote>
51
51
  <termsource status="identical">
52
52
  <origin bibitemid="ISO7301" type="inline" citeas="ISO 7301:2011"><locality type="clause"><referenceFrom>3.1</referenceFrom></locality></origin>
53
53
  </termsource>
@@ -74,7 +74,7 @@ RSpec.describe IsoDoc do
74
74
  <term id='paddy1'><name>1.1</name>
75
75
  <preferred><strong>paddy</strong></preferred>
76
76
  <definition>
77
- <p id='_eb29b35e-123e-4d1c-b50b-2714d41e747f'>&lt;rice&gt; rice retaining its husk after threshing</p>
77
+ <p id='_eb29b35e-123e-4d1c-b50b-2714d41e747f'>&#x3c;rice&#x3e; rice retaining its husk after threshing</p>
78
78
  </definition>
79
79
  <termexample id='_bd57bbf1-f948-4bae-b0ce-73c00431f892'>
80
80
  <name>EXAMPLE 1</name>
@@ -89,11 +89,8 @@ RSpec.describe IsoDoc do
89
89
  <li>A</li>
90
90
  </ul>
91
91
  </termexample>
92
- <termsource status='modified'>
93
- <origin bibitemid='ISO7301' type='inline' citeas='ISO 7301:2011'><locality type='clause'><referenceFrom>3.1</referenceFrom></locality>ISO 7301:2011, 3.1</origin>
94
- <modification>
95
- <p id='_e73a417d-ad39-417d-a4c8-20e4e2529489'>The term "cargo rice" is shown as deprecated, and Note 1 to entry is not included here</p>
96
- </modification>
92
+ <termsource status='modified'>[SOURCE:
93
+ <origin bibitemid='ISO7301' type='inline' citeas='ISO 7301:2011'><locality type='clause'><referenceFrom>3.1</referenceFrom></locality>ISO 7301:2011, 3.1</origin>, modified &#x2013; The term "cargo rice" is shown as deprecated, and Note 1 to entry is not included here]
97
94
  </termsource>
98
95
  </term>
99
96
  <term id='paddy'><name>1.2</name>
@@ -123,8 +120,8 @@ RSpec.describe IsoDoc do
123
120
  <li>A</li>
124
121
  </ul>
125
122
  </termexample>
126
- <termsource status='identical'>
127
- <origin bibitemid='ISO7301' type='inline' citeas='ISO 7301:2011'><locality type='clause'><referenceFrom>3.1</referenceFrom></locality>ISO 7301:2011, 3.1</origin>
123
+ <termsource status='identical'>[SOURCE:
124
+ <origin bibitemid='ISO7301' type='inline' citeas='ISO 7301:2011'><locality type='clause'><referenceFrom>3.1</referenceFrom></locality>ISO 7301:2011, 3.1</origin>]
128
125
  </termsource>
129
126
  </term>
130
127
  <term id='A'>
@@ -163,10 +160,9 @@ RSpec.describe IsoDoc do
163
160
  <li>A</li>
164
161
  </ul>
165
162
  </div>
166
- <p>[TERMREF]
167
- <a href="#ISO7301">ISO 7301:2011, 3.1</a>
168
- [MODIFICATION]The term "cargo rice" is shown as deprecated, and Note 1 to entry is not included here
169
- [/TERMREF]</p>
163
+ <p>[SOURCE:
164
+ <a href="#ISO7301">ISO 7301:2011, 3.1</a>, modified &#8211;
165
+ The term "cargo rice" is shown as deprecated, and Note 1 to entry is not included here]</p>
170
166
  <p class="TermNum" id="paddy">1.2</p>
171
167
  <p class="Terms" style="text-align:left;"><b>paddy</b></p>
172
168
  <p class="AltTerms" style="text-align:left;">paddy rice</p>
@@ -191,8 +187,7 @@ RSpec.describe IsoDoc do
191
187
  <p id="_19830f33-e46c-42cc-94ca-a5ef101132d5">The starch of waxy rice consists almost entirely of amylopectin. The kernels have a tendency to stick together after cooking.</p>
192
188
  </p>
193
189
  </div>
194
- <p>[TERMREF]<a href="#ISO7301">ISO 7301:2011, 3.1</a>
195
- [/TERMREF]</p>
190
+ <p>[SOURCE: <a href="#ISO7301">ISO 7301:2011, 3.1</a>]</p>
196
191
  <p class='TermNum' id='A'>1.3</p>
197
192
  <p class='Terms' style='text-align:left;'><b>term1</b></p>
198
193
  term1 definition
@@ -217,10 +212,9 @@ RSpec.describe IsoDoc do
217
212
  <li>A</li>
218
213
  </ul></div>
219
214
 
220
- <p class="Source">[TERMREF]
221
- <a href="#ISO7301">ISO 7301:2011, 3.1</a>
222
- [MODIFICATION]The term "cargo rice" is shown as deprecated, and Note 1 to entry is not included here
223
- [/TERMREF]</p>
215
+ <p class="Source">[SOURCE:
216
+ <a href="#ISO7301">ISO 7301:2011, 3.1</a>, modified &#8211;
217
+ The term "cargo rice" is shown as deprecated, and Note 1 to entry is not included here]</p>
224
218
  <p class="TermNum" id="paddy">1.2</p>
225
219
  <p class="Terms" style="text-align:left;"><b>paddy</b></p>
226
220
  <p class="AltTerms" style="text-align:left;">paddy rice</p>
@@ -234,8 +228,7 @@ RSpec.describe IsoDoc do
234
228
  </div>
235
229
  <div id='_671a1994-4783-40d0-bc81-987d06ffb74e' class="Note"><p class="Note">Note 1 to entry: The starch of waxy rice consists almost entirely of amylopectin. The kernels have a tendency to stick together after cooking.</p></div>
236
230
  <div id='_671a1994-4783-40d0-bc81-987d06ffb74f' class="Note"><p class="Note">Note 2 to entry: <ul><li>A</li></ul><p id="_19830f33-e46c-42cc-94ca-a5ef101132d5">The starch of waxy rice consists almost entirely of amylopectin. The kernels have a tendency to stick together after cooking.</p></p></div>
237
- <p class="Source">[TERMREF]<a href="#ISO7301">ISO 7301:2011, 3.1</a>
238
- [/TERMREF]</p>
231
+ <p class="Source">[SOURCE: <a href="#ISO7301">ISO 7301:2011, 3.1</a>]</p>
239
232
  <p class='TermNum' id='A'>1.3</p>
240
233
  <p class='Terms' style='text-align:left;'><b>term1</b></p>
241
234
  term1 definition
@@ -1,6 +1,6 @@
1
1
  require "spec_helper"
2
2
 
3
- RSpec.describe Asciidoctor::ISO do
3
+ RSpec.describe Metanorma::ISO do
4
4
  it "processes amendment sections" do
5
5
  expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", *OPTIONS)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
6
6
  #{AMD_BLANK_HDR}