Sha256: 0d09596e9f537090f8b88a7861a3b525cc5531c7201c7cc27c6fce4cb3661334

Contents?: true

Size: 377 Bytes

Versions: 7

Compression:

Stored size: 377 Bytes

Contents

When /^I parse the name "(.*)"$/ do |string|
  @name = BibTeX::Name.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

7 entries across 7 versions & 1 rubygems

Version Path
bibtex-ruby-1.3.6 features/step_definitions/name_steps.rb
bibtex-ruby-1.3.5 features/step_definitions/name_steps.rb
bibtex-ruby-1.3.4 features/step_definitions/name_steps.rb
bibtex-ruby-1.3.3 features/step_definitions/name_steps.rb
bibtex-ruby-1.3.2 features/step_definitions/name_steps.rb
bibtex-ruby-1.3.1 features/step_definitions/name_steps.rb
bibtex-ruby-1.3.0 features/step_definitions/name_steps.rb