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

Version Path
bibtex-ruby-4.4.7 features/step_definitions/name_steps.rb
bibtex-ruby-4.4.6 features/step_definitions/name_steps.rb
bibtex-ruby-4.4.5 features/step_definitions/name_steps.rb
bibtex_to_scrapbox-0.2.0 gems/gems/bibtex-ruby-4.4.4/features/step_definitions/name_steps.rb
bibtex_to_scrapbox-0.1.0 gems/gems/bibtex-ruby-4.4.4/features/step_definitions/name_steps.rb
bibtex-ruby-4.4.4 features/step_definitions/name_steps.rb
bibtex-ruby-4.4.3 features/step_definitions/name_steps.rb
bibtex-ruby-4.4.2 features/step_definitions/name_steps.rb
bibtex-ruby-4.4.1 features/step_definitions/name_steps.rb
bibtex-ruby-4.4.0 features/step_definitions/name_steps.rb
bibtex-ruby-4.3.0 features/step_definitions/name_steps.rb
bibtex-ruby-4.2.0 features/step_definitions/name_steps.rb
bibtex-ruby-4.1.2 features/step_definitions/name_steps.rb
bibtex-ruby-4.1.1 features/step_definitions/name_steps.rb
bibtex-ruby-4.1.0 features/step_definitions/name_steps.rb
bibtex-ruby-4.0.16 features/step_definitions/name_steps.rb
bibtex-ruby-4.0.15 features/step_definitions/name_steps.rb
bibtex-ruby-4.0.14 features/step_definitions/name_steps.rb
bibtex-ruby-4.0.13 features/step_definitions/name_steps.rb
bibtex-ruby-4.0.12 features/step_definitions/name_steps.rb