Sha256: 64bca5d49bd984882c41b41ca65d73d148cea524583ec14e4575ed36e1398d6f

Contents?: true

Size: 1.02 KB

Versions: 16

Compression:

Stored size: 1.02 KB

Contents

Feature: Inheritance of Name Options
  As a style author
  I want name nodes to inherit attributes
  From the citation/bibliography and style nodes

  Scenario: Name options from bibliography node
    Given the following style node:
      """
      <bibliography name-form="short">
        <layout>
          <names variable="author">
            <name />
          </names>
        </layout>
      </bibliography>
      """
    When I render the following citation items as "html":
      | author                  |
      | John Doe                |
    Then the results should be:
      | Doe                     |

    Given the following style node:
      """
      <bibliography name-form="short">
        <layout>
          <names variable="author"/>
          <!--it works without a name node-->
        </layout>
      </bibliography>
      """
    When I render the following citation items as "html":
      | author                  |
      | John Doe                |
    Then the results should be:
      | Doe                     |

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
citeproc-ruby-1.1.8 features/name_options.feature
citeproc-ruby-1.1.7 features/name_options.feature
citeproc-ruby-1.1.6 features/name_options.feature
citeproc-ruby-1.1.5 features/name_options.feature
citeproc-ruby-1.1.4 features/name_options.feature
citeproc-ruby-1.1.3 features/name_options.feature
citeproc-ruby-1.1.2 features/name_options.feature
citeproc-ruby-1.1.1 features/name_options.feature
citeproc-ruby-1.1.0 features/name_options.feature
citeproc-ruby-1.0.6 features/name_options.feature
citeproc-ruby-1.0.5 features/name_options.feature
citeproc-ruby-1.0.4 features/name_options.feature
citeproc-ruby-1.0.3 features/name_options.feature
citeproc-ruby-1.0.2 features/name_options.feature
citeproc-ruby-1.0.1 features/name_options.feature
citeproc-ruby-1.0.0 features/name_options.feature