Sha256: d6edf03bf3bc82cd90d6c4741b65703b91be26656e2cd00de27c33bd2251f060

Contents?: true

Size: 1.86 KB

Versions: 17

Compression:

Stored size: 1.86 KB

Contents

Feature: Searching in BibTeX bibliographies
	As a hacker who writes academic papers
	I want to be able to search my bibliographies
	In order to find the references I need
	
	Scenario: Find entries in a simple bibliography
		Given the bibliography:
		"""
		@book{pickaxe,
			Address = {Raleigh, North Carolina},
			Author = {Thomas, Dave, and Fowler, Chad, and Hunt, Andy},
			Date-Added = {2010-08-05 09:54:07 +0200},
			Date-Modified = {2010-08-05 10:07:01 +0200},
			Keywords = {ruby},
			Publisher = {The Pragmatic Bookshelf},
			Series = {The Facets of Ruby},
			Title = {Programming Ruby 1.9: The Pragmatic Programmer's Guide},
			Year = {2009}
		}
		@article{a1,
			Keywords = {@book}
		}
		@book{dragon,
			Address = {Boston},
			Author = {Aho, Alfred V., and Lam, Monica S., and Ullman, Jeffrey D.},
			Booktitle = {Compilers: Principles, Techniques, and Tools},
			Date-Added = {2010-08-05 09:57:15 +0200},
			Date-Modified = {2010-08-05 10:06:32 +0200},
			Edition = {second},
			Keywords = {compiler, lex, yacc},
			Publisher = {Addison Wesley},
			Title = {Compilers: Principles, Techniques, and Tools},
			Year = {2007}
		}
		"""
		When I search for "pickaxe"
		Then there should be exactly 1 match
		When I search for :pickaxe
		Then there should be exactly 1 match
		When I search for "camel"
		Then there should be exactly 0 matches
		When I search for "@book"
		Then there should be exactly 2 matches
		When I search for /@book/
		Then there should be exactly 3 matches
		When I search for "@book[]"
		Then there should be exactly 2 matches
		When I search for "@book[year=2007]"
		Then there should be exactly 1 match
		When I search for "@book[year=2009, keywords=ruby]"
		Then there should be exactly 1 match
		When I search for "@book[year=2009, keywords=yacc]"
		Then there should be exactly 0 matches
		When I search for "@book, @article"
		Then there should be exactly 3 matches
		

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
bibtex-ruby-2.0.2 features/query.feature
bibtex-ruby-2.0.1 features/query.feature
bibtex-ruby-2.0.0 features/query.feature
bibtex-ruby-2.0.0pre1 features/query.feature
bibtex-ruby-1.3.12 features/query.feature
bibtex-ruby-1.3.11 features/query.feature
bibtex-ruby-1.3.10 features/query.feature
bibtex-ruby-1.3.9 features/query.feature
bibtex-ruby-1.3.8 features/query.feature
bibtex-ruby-1.3.7 features/query.feature
bibtex-ruby-1.3.6 features/query.feature
bibtex-ruby-1.3.5 features/query.feature
bibtex-ruby-1.3.4 features/query.feature
bibtex-ruby-1.3.3 features/query.feature
bibtex-ruby-1.3.2 features/query.feature
bibtex-ruby-1.3.1 features/query.feature
bibtex-ruby-1.3.0 features/query.feature