sorting.feature 1.31 KB
Newer Older
Sylvester Keil's avatar
Sylvester Keil committed
1 2 3 4
Feature: Sorting BibTeX Bibliographies
  As a scholar who likes to blog
  I want to sort my bibliographies according to configurable parameters

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
  # Scenario: Sort Bibliography
  #   Given I have a configuration file with "citation_sort_by" set to "<sort-by>"
  #   And I have a configuration file with "citation_sort_order" set to "<sort-order>"
  #   And I have a page "references.bib":
  #     """
  #     ---
  #     ---
  #     @book{ruby,
  #       title     = {The Ruby Programming Language},
  #       author    = {Flanagan, David and Matsumoto, Yukihiro},
  #       year      = {2008},
  #       publisher = {O'Reilly Media}
  #     }
  #     @book{ruby,
  #       title     = {The Ruby Programming Language},
  #       author    = {Flanagan, David and Matsumoto, Yukihiro},
  #       year      = {2007},
  #       publisher = {O'Reilly Media}
  #     }
  #     """
  #   When I run jekyll
  #     Then "<pattern-1>" should come before "<pattern-2>" in "_site/references.html"
  # 
  #   Scenarios: Various Sort Orders
  #     | sort_order | sort-by    | pattern-1 | pattern-2 |
  #     | ascending  | none       | 2008      | 2007      |
  #     | descending | none       | 2008      | 2007      |
  #     | ascending  | year       | 2007      | 2008      |
  #     | descending | year       | 2008      | 2007      |
  #