Sha256: de9c3984598bee62e9ad4e78ecd158a2230f041ad6f6f69d5a26ea4b4d1887f6
Contents?: true
Size: 408 Bytes
Versions: 2
Compression:
Stored size: 408 Bytes
Contents
Given(/^the following style:$/) do |string| @style = CSL::Style.parse!(string) end When(/^I cite the following items as "(.*?)":$/) do |format, items| processor = CiteProc::Processor.new :style => @style, format: format processor.import items.hashes.map.with_index { |data, idx| data[:id] = "ID-#{idx}" data } @results = processor.items.keys.map { |id| processor.process :id => id } end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
citeproc-ruby-1.1.1 | features/step_definitions/engine.rb |
citeproc-ruby-1.1.0 | features/step_definitions/engine.rb |