Sha256: 7a1759d2a1c42e40bfbcb8db973c53add63aaf6520fc24db4cfe64b4065ce3f3
Contents?: true
Size: 469 Bytes
Versions: 72
Compression:
Stored size: 469 Bytes
Contents
When /^I parse the name "(.*)"$/ do |string| @name = BibTeX::Name.parse(string) end When /^I parse the names "(.*)"$/ do |string| @names = BibTeX::Names.parse(string) end Then /^the parts should be:$/ do |table| table.hashes.each do |row| assert_equal [row['first'], row['von'], row['last'], row['jr']], [@name.first, @name.von, @name.last, @name.jr].map(&:to_s) # row.each do |k,v| # assert_equal v, @name.send(k).to_s # end end end
Version data entries
72 entries across 72 versions & 2 rubygems