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-3.0.0 features/step_definitions/name_steps.rb
bibtex-ruby-2.3.4 features/step_definitions/name_steps.rb
bibtex-ruby-2.3.3 features/step_definitions/name_steps.rb
bibtex-ruby-2.3.2 features/step_definitions/name_steps.rb
bibtex-ruby-2.3.1 features/step_definitions/name_steps.rb
bibtex-ruby-2.3.0 features/step_definitions/name_steps.rb
bibtex-ruby-2.2.2 features/step_definitions/name_steps.rb
bibtex-ruby-2.2.1 features/step_definitions/name_steps.rb
bibtex-ruby-2.2.0 features/step_definitions/name_steps.rb
bibtex-ruby-2.1.2 features/step_definitions/name_steps.rb
bibtex-ruby-2.1.1 features/step_definitions/name_steps.rb
bibtex-ruby-2.1.0 features/step_definitions/name_steps.rb
bibtex-ruby-2.0.12 features/step_definitions/name_steps.rb
bibtex-ruby-2.0.11 features/step_definitions/name_steps.rb
bibtex-ruby-2.0.10 features/step_definitions/name_steps.rb
bibtex-ruby-2.0.9 features/step_definitions/name_steps.rb
bibtex-ruby-2.0.8 features/step_definitions/name_steps.rb
bibtex-ruby-2.0.7 features/step_definitions/name_steps.rb
bibtex-ruby-2.0.6 features/step_definitions/name_steps.rb
bibtex-ruby-2.0.5 features/step_definitions/name_steps.rb